[Resolved] Using {{post_terms.category}}

Home Forums Support [Resolved] Using {{post_terms.category}}

Home Forums Support Using {{post_terms.category}}

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1096392
    Aref

    Hi Team,

    When I use {{post_terms.category}} in Page Hero element it seems to remove the category meta from the post page that is positioned at the bottom.

    Is there anyway to keep the original category at the post page bottom as well as adding it to the Page Hero section?

    #1096594
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this PHP a shot:

    add_action( 'wp', function() {
        add_filter( 'generate_show_categories', '__return_true' );
    }, 150 );

    Let me know πŸ™‚

    #1096606
    Aref

    Help please πŸ™‚ no idea where to add it?!

    #1096613
    Leo
    Staff
    Customer Support
    #1096642
    Aref

    It worked, thanks. Any chance I can add the category and tag on the top of the posts pages as well as keeping them at the bottom?

    #1097142
    Leo
    Staff
    Customer Support

    So the category is already working so you just need to do the same for tags?

    If so try this:

    add_action( 'wp', function() {
        add_filter( 'generate_show_categories', '__return_true' );
        add_filter( 'generate_show_tags', '__return_true' );
    }, 150 );
    #1097397
    Aref

    Thank you.

    #1097414
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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