• Resolved freelylw

    (@freelylw)


    I have created a post type with the “Tags (WP Core)” checked. after I made several post with the same tags, I noticed when I click the tag, it showing me a page with message “Nothing Found”.

    I then tried the same post and tags with the WP default post type, it works, when I click the tag, it showing me all the associated post. but just doesn’t work with my cutomer post type. please advise if I am missing something. Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I would read over https://docs.pluginize.com/article/17-post-types-in-category-tag-archives

    Basically by default WP core doesn’t include custom post types in the category/tag archives, but it can be filtered in to be included with a touch of code.

    Let me know if you can handle this, or if you need a little bit of help, in case you’re not as code savvy.

    Thread Starter freelylw

    (@freelylw)

    Hi, I don’t know about the coding sorry. I noticed if I create a new taxonomy and attach it into my new post type, then will work. but the tag(core) won’t works. so which way I should go, please advise. Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you wanting all post types created with CPTUI to have WP core tag support? or just certain ones? I can create a quick plugin version of the code linked above, that you can install and have it handled for you.

    If just certain post types, can you let me know what those slugs are?

    Thread Starter freelylw

    (@freelylw)

    I don’t know what’s the difference of WP-core-tag and CPTU tags, if I create a new tags from CPTU, it works automatically, can you explain a bit for the difference of both tags ?

    I need to have all post types created with CPTU to have tags support, if the CPTU tags works, then I don’t need the core-tag, if not, then I need the core-tag for all post types created with CPTU, thank you.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    In terms of the UI and verbiage that we provide, “WP Core” tags are just taxonomies that are registered by default by WordPress itself. Most specifically “categories” and “tags”.

    Part of our plugin here for years has been the ability to register your taxonomies. In our list there, we don’t append “WP Core” because those are custom taxonomies from either CPTUI or some other plugin/theme that registered their own as well.

    A minor shortcoming with the WP Core taxonomies, “category” and “post_tag” is that their archives only query for the “post” post type by default. Thus we have the code in my original reply, so that extra post types will be included as part of the queries for the archives. Posts in your custom post types would be included.

    So, since you mentioned wanting to include all of them, I have copy/pasted and amended the documentation code into an installable plugin for you.

    https://www.dropbox.com/s/c8neo65pnh9dfvm/freelylw-cptui-cat-tag-archives.zip?dl=0

    Install it via the upload functionality, and you should then be able to activate and have the rest just work.

    Thread Starter freelylw

    (@freelylw)

    thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Let me know if this works, or if something is still amiss.

    Have a good rest of your day.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘tags are not linking to post’ is closed to new replies.