How to add subcategories in WordPress

When should we add sub-categories?

With your WordPress site, you can divide up your content into categories and tags to help users find it efficiently. However, only categories can have sub-categories so you can develop a proper site structure that is meaningful and semantic.
We recommend you should review our previous tutorial,  It will help you understand the differences between categories and tags, and how to work with them.

You may confuse that why we shouldn’t add sub-categories, but not adding one post into multiple categories? You can leave popular tags as tags but by the nature of how top-categories setup, you shouldn’t classify one post into multiple top-level categories. And there is no SEO benefits to adding multiple categories.
You should consider adding a sub-category of your main category when you have over 10 posts that in the same tags is consistently growing.

I assume if you are creating a personal website for sharing all about your life, such as travelling, style, music, food recipe…For example, “Food Recipe” is one of your top-categories, you may want users to be able to find articles by Appetizer/Desert/Main Dish or Vegetarian. So “Food Recipe” would become a top-category (parent category), and Appetizer/Desert/Main Dish/Vegetarian would be used as sub-categories. A post filed under a sub-category does not need to be filed under top-category. If you choose to file a post under the sub-category but not under the top-category, then your post will appear only on the archive pages of sub-category. It is helpful to avoid duplicate content on your site.


How to add subcategories in WordPress

In the previous article, you have been known how to easily add a new category in WordPress. Adding sub-categories is the similar process. On the post edit screen, scroll down to the categories meta box and click on Add New Category link. This will show you text field for adding new category name and a dropdown menu to select the parent category.


You also add new sub-category by visiting Pages » Categories page.


Fill your sub-category name then select the parent category from the Parent Category dropdown menu.

How to display Categories and Sub-categories in WordPress Sidebar

By default, your WordPress theme automatically show the categories for each post. If you want to display all your categories on your sidebar, you need to visit Appearance » Widgets page. Click the arrow next to the Categories widget from the list.


Check the box next to ‘Show hierarchy’ option and click on the save button to add all your categories to Sidebar.
Now visit your site and you will see all your categories with sub-categories aligned under the parent category.



Hopefully that this article helps you learn how to add sub categories and display categories in WordPress Sidebar.  See you again in orther tutorials!

Leave a Reply

Your email address will not be published. Required fields are marked *