Site logo

Archived topic

Using {{post_terms.category}}

7 replies · Started by Aref on December 6, 2019

Viewing posts 1–8 of 8

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?

Hi there,

Give this PHP a shot:

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

Let me know :)

Help please :) no idea where to add it?!

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?

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 );

Thank you.

No problem :)

This archived topic is closed to new replies.