Site logo

Archived topic

Tags for Pages (or How to Create CPTs)

13 replies · Started by yig on November 22, 2018

Viewing posts 1–14 of 14

Hi there,

I have many pages on my website with tags that I created in my previous theme. Is there a way to enable tags for pages on GeneratePress? The previous pages with tags brought from the older themes work fine (for tag related filters) but I cannot add new pages with tags and this creates an inconvenience.

If there is not, I have read there are something called CPTs... But I have no idea how to create them and if so, would it be an easy thing to bulk move all these pages into CPTs?

I would be glad if someone could help this beginner :)

Cheers

Hi Tom,

It did help perfectly :)

Thanks so much

You're very welcome :)

Hi Tom! Im using the plugin: https://wordpress.org/plugins/tag-pages/

I can insert tags for pages, but they don't show up on the frontend of each page. As i was said... "Make sure your theme you are using supports displaying tags on Pages".

So the big question is: Can i show tags on pages with GeneratePress Premium and how?

Thanks in advance
Spiros

Hi there,

Give this a shot:

add_filter( 'generate_footer_meta_post_types', function( $types ) {
    $types[] = 'page';

    return $types;
} );

Hi.

No it did not work.

So i use the "Post Type Switcher" plugin and changed my pages into posts and tags are showing. Case closed.

Regards

Glad you found a solution :)

Hello. I have the same problem. I have installed the "tags to pages" plugin but those tags are not showing on the pages. In this case I can't change the pages to posts.

Thank you!!! :) :) :)

Example page with 3 tags: https://whynotpilates.net/sample-page/

Hi there,

in Customizer > Layout > Blog, do you have any of the post meta items such as Categories checked to display on ?

Try adding this snippet as well as the other one:

add_action('generate_after_content',function(){
    if ( is_singular('page')) {
        generate_footer_meta();
    }
});

Glad to be of help!

This archived topic is closed to new replies.