How do I create custom taxonomies in WordPress?

Applies to: WordPress 6.x and later
Last updated: September 2025


Problem

WordPress includes built-in taxonomies such as categories and tags, but these may not always fit your content structure. For example, if you have a custom post type for “Books,” you might want a taxonomy for “Genres” or “Authors.” Custom taxonomies allow you to classify and organize content more effectively.


Solution

The simplest way to create custom taxonomies is by using a plugin. Plugins provide a user-friendly interface for creating and managing taxonomies without editing code.


Step-by-step instructions

Using the Custom Post Type UI Plugin

  1. Install and activate the Custom Post Type UI plugin.
  2. In the WordPress dashboard, go to CPT UI > Add/Edit Taxonomies.
  3. Enter the taxonomy details:
    • Taxonomy slug (e.g., “genre”).
    • Plural label (e.g., “Genres”).
    • Singular label (e.g., “Genre”).
  4. Assign the taxonomy to one or more post types (e.g., “Books”).
  5. Choose whether it should be hierarchical (like categories) or non-hierarchical (like tags).
  6. Save changes.
  7. Your new taxonomy will now appear in the dashboard and can be used when adding or editing posts.

Optional methods or tools

  • Pods Framework: Lets you create taxonomies and manage them alongside custom post types.
  • Toolset Types: Provides a flexible interface for creating and connecting custom taxonomies.

Best practices or tips

  • Use descriptive names for taxonomies so users understand their purpose.
  • Keep taxonomy structure simple and consistent to avoid overwhelming editors.
  • Use taxonomies to improve search, filtering, and navigation, especially for large websites.
  • Review taxonomy usage regularly to ensure it matches your site’s evolving content strategy.

You may also like...