How to Associate a Post Type with a Taxonomy
Whenever you create a Custom Post Type, you’ll need to associate it to a Taxonomy for organization. And when you create a Custom Taxonomy, you’ll need to associate it with a Post Type, otherwise it will have nothing to classify. Here are some examples:
- A Books post type needs to be associated with Genre and Author taxonomies
- A Products post type needs to be associated with Brand and Size taxonomies
- A Real Estate Listings post type needs to be associated with a Region taxonomy
- A Vehicle post type needs to be associate with a Manufacturer taxonomy
You can also associate Custom Taxonomies with the default WordPress Post Types. You may wish to have additional taxonomies for organizing your Pages or Posts, for example.
And you can also associate Custom Post Types with the default WordPress Taxonomies, categories and tags.
Associating a Custom Post Type with a Taxonomy is done either through the Custom Post Type admin screen, or the Custom Taxonomy admin screen.
Through the Custom Post Type Admin Screen
Navigate to Pods Admin and click on the Post Type you wish to associate with a Taxonomy.
Click on the Advanced Options tab.
Scroll down to Built-in Taxonomies and select the Taxonomies you wish to associate with the Post Type.
When you’re happy click Save Pod.
Through the Custom Taxonomy Admin Screen
Navigate to Pods Admin and click on the Taxonomy you wish to associate with a Post Type.
Click on the Advanced Options tab.
Scroll down to Associated Post Types and select the Post Types you wish to associate with the Taxonomy.
When you’re happy click Save Pod.
Whichever method you chose, the Taxonomy will now be associated with the Post Type and appear nested in its menu.