Custom taxonomy lets you organize your custom post types. It’s like categories and tags for posts, but used for any custom type that you define.
Follow these steps
- Go to the Toolset → Dashboard page and click the Add custom taxonomy button in the row of the post type you want to add a custom taxonomy to.
- Enter the plural and singular name for your taxonomy. Slug is created automatically.
- Click the Save Taxonomy button.
Your new taxonomy will now appear in the main WordPress admin menu. It will be under the post type that you added this taxonomy for.
Go to this taxonomy page to add your actual categories to it. These categories are called taxonomy terms.
Using hierarchical or flat taxonomy
When you edit a taxonomy, use the Taxonomy type section to set whether it is hierarchical or flat.
Hierarchical taxonomy can have a structure with children and parent taxonomy terms, just like the standard post categories.
Flat taxonomy has no structure and works like standard post tags.
- Adding Custom Posts
- When and Why You Should Use Custom Types
- Creating Custom Fields
- Creating a Custom Post Type
- What Are Custom Types and How They Work
- Convert existing custom types and fields to Types control
- Limitations on HTML Content in Post Fields
- Conditional Backend Display for Custom fields