Archived topic
Show post tags on the Avery site template?
8 replies · Started by nomadiceman on June 24, 2020
I am using the Avery site template and only just noticed that the post tags aren't showing at the bottom of the posts
I can't see any additional CSS that's hiding them
How do I go about getting them to display?
Hi there,
make sure they're enabled in Customizer > Layout > Blog --> Single -->> Display post tags
Yes they’re enabled
The demo site using Avery doesn’t show any tags so I’m guessing it’s built into the theme to hide them
I've just checked to confirm. I turned on the navigation option now also
I figured something out here
I used some code from another post on here to move the category to the side of the date in the archives, but it seems to hide the tags too
this is the code ive got
add_filter( 'generate_footer_entry_meta_items', function() {
return array(
);
} );
add_filter( 'generate_inside_post_meta_item_output', function( $output, $item ) {
if ( 'categories' === $item ) {
return ' | ';
}
return $output;
}, 50, 2 );
add_filter( 'generate_header_entry_meta_items', function() {
return array(
'date',
'categories',
);
} );
what bit do I change so that the tags are shown?
ive disabled that code in the "code snippets" plugin and now the tags are showing
would be good if I can figure out how to still move the categories while keeping the tags
This part of your code:
add_filter( 'generate_footer_entry_meta_items', function() {
return array(
);
} );
Is removing all the post meta items from the post footer. Change it for this to show the tags:
add_filter( 'generate_footer_entry_meta_items', function() {
return array(
'tags',
'post-navigation',
);
} );
great! thanks again
You're welcome