Custom Taxonomy Builder
Create custom taxonomies to organize your content beyond standard categories and tags. Perfect for filtering products by brand, recipes by cuisine, or properties by location.
Use Cases
- Create “Cuisine” and “Meal Type” taxonomies to filter recipes by multiple criteria
- Build “Brand”, “Color”, and “Size” taxonomies for product filtering in e-commerce
- Add “Region” and “City” taxonomies to organize business listings geographically
- Create “Skill Level” taxonomy for tutorials or courses
- Build “Industry” taxonomy for case studies or portfolio items
How It Works
- Navigate to Switchboard → Taxonomy Builder
- Click “Add New Taxonomy”
- Enter a name (e.g., “Cuisine”) and select which post types to attach it to
- Choose between hierarchical (like categories) or flat (like tags)
- Save, and the taxonomy appears in your selected post types’ edit screens
Where to Find It
Location: Switchboard → Taxonomy Builder in your WordPress admin menu.
Creating a Custom Taxonomy
Basic Settings
| Field | Description | Example |
|---|---|---|
| Name | Singular name | Cuisine |
| Plural Name | Plural form | Cuisines |
| Slug | URL-friendly identifier | cuisine |
| Type | Hierarchical or Flat | Hierarchical |
Taxonomy Types
Hierarchical (like Categories)
- Parent/child relationships
- Checkbox selection in editor
- Great for: Locations, categories, nested classifications
Flat (like Tags)
- No parent/child relationships
- Comma-separated input or tag cloud
- Great for: Attributes, keywords, features
Post Type Assignment
Select which post types your taxonomy applies to:
- Posts
- Pages
- Custom post types you’ve created
You can assign one taxonomy to multiple post types if they share the same classification needs.
Advanced Options
| Option | Default | Description |
|---|---|---|
| Public | Yes | Make taxonomy visible on frontend |
| Show in REST | Yes | Enable Gutenberg sidebar and REST API |
| Show Admin Column | No | Add column in post list table |
| Show Tag Cloud | No | Include in tag cloud widgets |
Example: Recipe Taxonomies
For a food blog, create these taxonomies:
Cuisine (Hierarchical)
- Italian
- Pasta
- Pizza
- Asian
- Chinese
- Japanese
- Thai
Meal Type (Flat)
- Breakfast, Lunch, Dinner, Snack, Dessert
Diet (Flat)
- Vegetarian, Vegan, Gluten-Free, Keto, Dairy-Free
Using Your Taxonomies
In the Post Editor
Once created, your taxonomy appears in the post editor sidebar:
- Hierarchical: Checkbox list (like Categories)
- Flat: Tag-style input (like Tags)
Displaying on the Frontend
Archive Pages
Taxonomies automatically create archive pages:
https://yoursite.com/cuisine/italian/
https://yoursite.com/meal-type/breakfast/In Templates
Display taxonomy terms in your templates:
<?php
// Get terms assigned to current post
$cuisines = get_the_terms(get_the_ID(), 'cuisine');
if ($cuisines) {
echo '<div class="cuisines">';
foreach ($cuisines as $cuisine) {
echo '<a href="' . get_term_link($cuisine) . '">' . $cuisine->name . '</a>';
}
echo '</div>';
}
?>
List All Terms
Display all terms in a taxonomy:
<?php
$cuisines = get_terms([
'taxonomy' => 'cuisine',
'hide_empty' => true,
]);
foreach ($cuisines as $cuisine) {
echo '<a href="' . get_term_link($cuisine) . '">' . $cuisine->name . '</a>';
}
?>
Filtering with WP_Query
Query posts by taxonomy:
<?php
$italian_recipes = new WP_Query([
'post_type' => 'recipe',
'tax_query' => [
[
'taxonomy' => 'cuisine',
'field' => 'slug',
'terms' => 'italian',
],
],
]);
?>
Admin Column
Enable “Show Admin Column” to see taxonomy terms directly in the post list table. This makes it easy to:
- Quickly see which terms are assigned to each post
- Click a term to filter the list by that term
- Identify posts that need categorization
FAQ
What’s the difference between hierarchical and flat taxonomies?
Hierarchical taxonomies (like Categories) allow parent/child relationships and show as checkboxes. Flat taxonomies (like Tags) are simple lists without nesting and show as a tag input field.Can I use one taxonomy with multiple post types?
Yes! When creating a taxonomy, select all the post types you want it to apply to. For example, a “Location” taxonomy could apply to both Events and Properties.How do I add terms to my taxonomy?
After creating the taxonomy, go to your post type in the admin menu. You’ll see your taxonomy listed there (e.g., Posts → Cuisines). Click it to add, edit, and organize terms.Can I import existing categories into a custom taxonomy?
Not directly through this module, but you can use WordPress import/export tools or plugins to migrate terms between taxonomies.Why aren’t my taxonomy archives showing the correct posts?
Go to Settings → Permalinks and click “Save Changes” to refresh your URL structure after creating a new taxonomy.Enable “Show Admin Column” for taxonomies you use frequently. It makes content management much faster when you can see and filter by terms directly in the post list.
Plan your taxonomy structure before creating it. Changing from hierarchical to flat (or vice versa) later can cause issues with existing term relationships.
Get access to all 147 modules with a single license