Can I have 2 Post Types with different categories?

[ad_1]

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.

[ad_2]
2 Comments
  1. 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.

  2. Yes but you need to name the taxonomies something different. Categories isn’t descriptive anyway, I’d name one genre and the other brand. πŸ™‚

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer