Using ACF & CPT I am trying to create something but It doesn’t seem to work as planned, I am pretty sure this is doable just that I don’t know how.
explanation here π
Having 2 post types that I’ve already created but the issue that I have they share the same categories and I don’t know how to do this. For example, I would like to have 1 post type with multiple categories and another post type with different categories.
So something like this:
**1. Post type** \- Movies / **Categories**: *Crime, Drama, Comedy…*
**2. Post type** \- Cars / **Categories:** *Mercedes, BMW, Toyota…*
I think you get the idea π
(the idea is that this will be on the same domain, but totally different subjects with their dedicated pages)
Would really appreciate anyone who can assist me with this, haven’t worked with Custom Post types for a really long time and I am kinda new to this as well.
You need to look up taxonomies. It sounds like you’re using the default categories for your CPT? You just need to register a new taxonomy for each of your custom post types. It’s very similar to registering a post type, you just register the taxonomy and assign it to the post types you want to use it.
https://developer.wordpress.org/reference/functions/register_taxonomy/
Yes but you need to name the taxonomies something different. Categories isnβt descriptive anyway, Iβd name one genre and the other brand. π