Forum Replies Created
-
AuthorPosts
-
marcoELEParticipant
Thank you very much for the answer, but I am not asking for support 3rd party plugins.
I just need to show tags and categories in pages. Plugin is working already ok and they proposed me to ask to my theme developer for what I need.
Thank you very much
juanmarcoELEParticipantDear friends,
Thank you very much for the answer, but I am not asking for support 3rd party plugins.
I already know how to add tags (or categories) to pages (via plugin or via code into the functions.php file) but i dont know how to display them to my template files for pages.
I would like to know the code that enables display the meta info:
1. Into the 'tag' pages [like this one https://marcoele.com/palabraclave/nivel-umbral/ ] The second item comes from a page already tagged, but the problem is that doesnt display the tags.
2. Into the normal single pages that i already have tagged.
(only to display. The code wich enables to add tags i alredy know it, see below)Is there any code to add into my functions.php file that enables what I need?
Thank you very much
juan..........................................
// add tag support to pages
function tags_support_all() {
register_taxonomy_for_object_type('post_tag', 'page');
}// ensure all tags are included in queries
function tags_support_query($wp_query) {
if ($wp_query->get('tag')) $wp_query->set('post_type', 'any');
}// tag hooks
add_action('init', 'tags_support_all');
add_action('pre_get_posts', 'tags_support_query');
.......................................... -
AuthorPosts