Black Friday50% off every Pro template and membership with code50% off with Ends in 05days15hrs54min06secShop the sale →

How to Add Categories and Subcategories in WordPress

Do you want to add categories and subcategories in WordPress to boost SEO? Look no further; this blog will show you how. However, we will first give you a definition of these terms to help you gain more knowledge. What…

How to Add Categories and Subcategories in WordPress?

Do you want to add categories and subcategories in WordPress to boost SEO? Look no further; this blog will show you how. However, we will first give you a definition of these terms to help you gain more knowledge.

What are Parent and Child Categories in WordPress?

First, you need to understand that Categories is one of the taxonomies in WordPress. This plays an important role in classifying and grouping your content into various topics. Thanks to that, your visitors can see archives of related posts shown in one place.

However, why and when do you need to create parent and child categories in WordPress? Here is an example.

Suppose you are creating listings for trusted beauty destinations around the world, and your users want to find a destination by both country and city. For example, users may want to search for nail salons in the United States. It is necessary for you to create related posts and use the United States as the category for those posts.

However, when users want to find the best locations in Michigan, New York City, Texas, and more, you need to create subcategories titled Michigan, New York, and Texas that are child categories of the parent category “United States”.

In fact, adding categories and subcategories in WordPress not only improves your visitors’ experience by making it easier for them to look for content on your website but also helps you boost SEO by giving crawlers more context for your site’s structure.

How to Add a Category in WordPress?

There are various methods to add a category in WordPress. However, in today’s tutorial, we are going to start with the quickest and simplest method. Now, follow the steps below.

Step 1: Choose the Categories Option from the Block Editor Menu

First of all, you need to create a new post or edit an existing post to which you want to add a new category. On the Block Editor screen, simply click on the Gear icon displayed at the top right corner of the screen to open the options menu.

Then, click on the “Categories” section to see a list of available categories on your website.

If you have not added any categories before, your website currently only displays the “Uncategorized” option. This option is the default category in WordPress. Whenever you forget to assign a particular category, WordPress will automatically set the category to “Uncategorized”.

You may also want to visit our step-by-step tutorial on how to Rename Uncategorized Category in WordPress.

add categories and subcategories in wordpress 1

Step 2: Click on the “Add New Category” link

Once you click on the “Add New Category” link below existing categories, WordPress immediately displays a few fields you can fill out.

add categories and subcategories in wordpress 2

Step 3: Give your category a name and save it

Under the “New Category Name” field, you need to give your category a name. It should be different from other available category names on your website.

For example, we are going to create a tutorial blog about WordPress. We might add “WordPress“, which will be further broken down into additional subcategories.

add categories and subcategories in wordpress 3 1

For a regular category, you can leave the Parent Category field empty. Finally, don’t forget to click on the “Add New Category” button.

After that, the new category will be automatically checked for your current post. You can uncheck it if you want.

add categories and subcategories in wordpress 5 1

Alternatively, you can also go to Posts > Categories and add your new category. This way allows you to create all your categories before creating content. In addition, you can edit the slug, delete, and rename categories here. You can even give your categories a description.

categories and subcategories in wordpress

How to Add a Child Category (Subcategory) in WordPress?

The process of adding a child category in WordPress is similar to that of adding a category as we have just demonstrated above. However, there is one main difference. Now, let’s take a look at the following steps to create a subcategory for a parent category in WordPress.

Step 1: Start editing a post & choose the Categories tab

First, you need to edit a post or create a new post to which you want to add a child category. Then select the Categories section under the post tab in the right column. This will expand the categories section to help you see existing categories in your WordPress.

Step 2: Click the “Add New Category” Link

Similarly, you need to select the “Add New Category” link. This will open a few fields where you can give your child category a name.

categories and subcategories in wordpress

Step 3: Choose a parent category for your child category and save it

Let’s click on the Arrow symbol on the Parent category field to select the category that you want to use as the parent category from the drop-down options.

For example, we will add a WordPress Tutorial that will be considered a child category of the “WordPress” category that we added above. So, we will select the “WordPress” option from the Parent Category dropdown list.

categories and subcategories in wordpress

After assigning a parent category for your subcategory, let’s click on the “Add New Category” button to save it.

In addition, you can also navigate to Posts > Categories in your admin dashboard to add child categories easily.

add categories and subcategories in wordpress 8

You should notice that each subcategory can only have one parent, so you cannot assign two different parent categories for one sub-category.

How to display categories and subcategories in the WordPress sidebar?

In order to display categories and subcategories in the WordPress sidebar, you can simply use the Categories widget.

First of all, you need to go to Appearance > Widgets. Then you will see a list of available widgets on the left side. Drag and drop the Categories widget to the sidebar. If the categories widget is already on your sidebar, you can skip this step.

Under the widget settings, you can choose from 3 ways to show your categories. Then click on the “Save” button to save the widget.

add categories and subcategories in wordpress 9

For example, we checked the “Show Hierarchy” option in the widget. When you visit the front end of your website, your categories will display like this.

categories and subcategories in wordpress

The final thoughts

Adding categories and subcategories in WordPress is really an easy task. We hope that this blog gave a detailed guide to help you handle your problems effectively. Do you have any questions? If so, don’t hesitate to leave a comment below. We will support you as soon as possible. You may also want to see our detailed guide on how to properly rename categories in WordPress.

By the way, do you want to have a beautiful website? Then visit our Free WordPress Themes to explore a wide array of well-structured, responsive designs for your website.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.