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?
Can you please share some screenshots of the issue on your site? It is possible that the taxonomy
category is assigned to two CPT
First off, sorry but I guess I should have said "FAQs" not "Events" ~
Categories in Notices:
Categories in FAQs (which are right and were made first):
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":
Any other screenshots that would be helpful?
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
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?
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?
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.