Do you want to show custom taxonomy terms in your WordPress sidebar? This guide will help you do that. It’s simple and easy to follow.
What is a Custom Taxonomy?
A taxonomy is a way to group things. WordPress has default taxonomies. These are categories and tags. Custom taxonomies let you create your own groups. You can use them to organize your content better.

Credit: www.wpbeginner.com
Why Use Custom Taxonomies?
Custom taxonomies help you sort your content. They make it easier for visitors to find what they need. They also make your site look more professional.
Step-by-Step Guide to Display Custom Taxonomy Terms
Let’s start the process. Follow these steps to show custom taxonomy terms in the sidebar.
Step 1: Create A Custom Taxonomy
First, you need to create a custom taxonomy. You can do this using a plugin. One good plugin is “Custom Post Type UI.”
- Install and activate the plugin.
- Go to “CPT UI” in the WordPress dashboard.
- Click on “Add/Edit Taxonomies.”
- Fill in the fields to create your custom taxonomy.
- Click “Add Taxonomy” to save it.
Step 2: Assign Terms To Your Custom Taxonomy
Now, you need to add terms to your custom taxonomy. Here’s how:
- Go to “Posts” or “Pages” in the dashboard.
- Find your custom taxonomy on the right side.
- Click “Add New” to create a new term.
- Enter a name for your term and click “Add New.”
Step 3: Display Custom Taxonomy Terms In Sidebar
It’s time to show the custom taxonomy terms in the sidebar. For this, we will use a widget. Follow these steps:
- Go to “Appearance” in the dashboard.
- Click on “Widgets.”
- Find the “Custom HTML” widget.
- Drag it to the sidebar area.
- Enter the title for your widget.
- Paste the following code in the content area:
php
$terms = get_terms( array(
'taxonomy' = 'your_custom_taxonomy',
'hide_empty' => false,
) );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
echo '';
foreach ( $terms as $term ) {
echo '- ' . $term->name . '
';
}
echo '
';
}
?>
Replace “your_custom_taxonomy” with the name of your custom taxonomy.
Step 4: Save And Preview
Click “Save” to save the widget. Visit your website to see the custom taxonomy terms in the sidebar. They should now be visible.
Tips for Better Display
You can style the widget with CSS. This will make it look better. Here are a few tips:
- Use simple and clean design.
- Make sure the text is easy to read.
- Keep the colors consistent with your theme.

Credit: www.pinterest.com
Frequently Asked Questions
What Is A Custom Taxonomy In WordPress?
A custom taxonomy helps group posts together. It acts like categories or tags.
How To Create A Custom Taxonomy?
Use the `register_taxonomy` function in your theme’s functions. php file.
Can I Display Custom Taxonomies In Sidebar Widgets?
Yes, you can show them using custom code or plugins.
Do I Need Coding Skills To Display Custom Taxonomies?
Basic coding skills help. But plugins make it easier for everyone.
Conclusion
Displaying custom taxonomy terms in the WordPress sidebar is easy. Follow these steps and your site will be more organized. Your visitors will appreciate it. They will find what they need faster. Good luck!