Wrong "Category" items showing up in a totally different CPT

Support MB Custom Post Type Wrong "Category" items showing up in a totally different CPT

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #37170
    SteveSteve
    Participant

    Hi,

    I made a CPT for "Events" and another for "Notices" but the Events' categories are showing up in the Notices' categories. Shouldn't those categories be totally different? How can I get them to have different sets of categories?

    Thanks,
    Steve

    #37178
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share some screenshots of the issue on your site? It is possible that the taxonomy category is assigned to two CPT events and notices.

    #37196
    SteveSteve
    Participant

    Hi Long!

    First off, sorry but I guess I should have said "FAQs" not "Events" ~

    Sure:
    Categories in Notices:
    https://tinyurl.com/26nlegkq

    Categories in FAQs (which are right and were made first):
    https://tinyurl.com/22epcm4f

    They're in Korean, but you'll notice they're the same.

    I didn't create a custom Category for either of them. I just made the categories in FAQs. Here's our custom taxonomies - and they all apply to "Products":
    https://tinyurl.com/2bjsjzr4

    Any other screenshots that would be helpful?

    #37197
    SteveSteve
    Participant

    Hmmm,

    And here's the Categories for the Posts:
    https://tinyurl.com/22zlc6w3

    But here are the categories for Products:
    https://tinyurl.com/26eudnzm

    Shouldn't each CPT get it's own set of "Categories"? Why are the same "Categories" being duplicated for Posts, FAQs, Notices, etc.?

    Thanks Long!

    #37216
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please understand that the Plural/Singular name of the taxonomy can be the same but the slug is different. WooCommerce product category has the same Plural name as the Post category but has a different slug product_cat. You can see it in the URL https://monosnap.com/file/oO8j6PCtT9wMyTDlvwyGDxoDXgT4EH

    #37227
    SteveSteve
    Participant

    Hi Long,

    That's great info!

    But now how do I change the Notice category URL to notice_cat? What's the step I need to take? I get that the URL is different, but how do I change the URL for each CPT?

    Thanks,
    Steve

    #37228
    SteveSteve
    Participant

    Hi Again Long,

    Does that mean I need to create a Custom Taxonomy for each CPT to get them to have different categories? Then they can't be called "Categories", right? They have to have their own taxonomy name?

    #37246
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can change the Notice category slug to notice_cat by going to Meta Box > Custom Taxonomies > Edit Notice and change the slug. The taxonomies can have the same Plural/Singular name but must have different slugs, the slug must be unique. You can read more here https://developer.wordpress.org/reference/functions/register_taxonomy/
    and the section Reserved terms.

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