[Resolved] Show post tags on the Avery site template?

Home Forums Support [Resolved] Show post tags on the Avery site template?

Home Forums Support Show post tags on the Avery site template?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1340009
    nomadiceman

    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?

    #1340099
    David
    Staff
    Customer Support

    Hi there,

    make sure they’re enabled in Customizer > Layout > Blog –> Single –>> Display post tags

    #1340109
    nomadiceman

    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

    #1340122
    nomadiceman

    I’ve just checked to confirm. I turned on the navigation option now also

    #1340136
    nomadiceman

    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?

    #1340140
    nomadiceman

    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

    #1340159
    David
    Staff
    Customer Support

    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',
        );
    } );
    #1340768
    nomadiceman

    great! thanks again

    #1341172
    David
    Staff
    Customer Support

    You’re welcome

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.