Site logo

[Resolved] Tags for Pages (or How to Create CPTs)

Home Forums Support [Resolved] Tags for Pages (or How to Create CPTs)

Home Forums Support Tags for Pages (or How to Create CPTs)

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #735209
    yig

    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

    #735246
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Pages don’t have tags in WP by default, but a plugin like this might help: https://wordpress.org/plugins/tag-pages/

    Let me know ๐Ÿ™‚

    #735253
    yig

    Hi Tom,

    It did help perfectly ๐Ÿ™‚

    Thanks so much

    #735254
    Tom
    Lead Developer
    Lead Developer

    You’re very welcome ๐Ÿ™‚

    #1000299
    spirospan

    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

    #1000452
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this a shot:

    add_filter( 'generate_footer_meta_post_types', function( $types ) {
        $types[] = 'page';
    
        return $types;
    } );
    #1004161
    spirospan

    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

    #1004308
    Tom
    Lead Developer
    Lead Developer

    Glad you found a solution ๐Ÿ™‚

    #2537831
    Eloy

    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/

    #2537910
    David
    Staff
    Customer Support

    Hi there,

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

    #2538114
    Eloy

    Yes

    https://ibb.co/9WqZ1NZ
    https://ibb.co/t3X4TCw

    Thanks for your quick response!! ๐Ÿ™‚

    #2538648
    David
    Staff
    Customer Support

    Try adding this snippet as well as the other one:

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

    Yes!!!

    Itยดs working -> https://whynotpilates.net/sample-page/

    Thank you very much for your help ๐Ÿ™‚ ๐Ÿ™‚ ๐Ÿ™‚

    #2539605
    David
    Staff
    Customer Support

    Glad to be of help!

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