Skip to content

How to Create WordPress Categories and Subcategories

categories, subcategories

Understanding WordPress Parent and Child Categories

Categorization is a useful tool. They’re more than just a technique to organise your data. They can also assist you in creating a relevant and semantic site structure. This is really beneficial to your WordPress SEO.

Important: If you’re not sure what the difference between categories and tags is, check out our category versus tag guide. This covers the differences between categories and tags, as well as how to utilise them correctly.

You may be asking why and when you should use child categories (subcategories) on your WordPress website.

Assume you’re starting a travel blog for various locations across the world. Users may want to be able to search for articles by both nation and city.

You might write an essay about the top waterparks in the United States, for example. It would make sense to categorise that post as ‘United States.’

However, you may have articles about the top restaurants in New York City, Los Angeles, Chicago, and other cities.

You can use subcategories or child categories here. The parent category can be ‘United States,’ and the child categories can be cities.

A post that is filed in a child category does not have to be filed in the parent category as well. We could have left ‘United States’ unchecked in our example and simply placed the post in the ‘New York City’ category.

If you submit a post to a child category but not to the parent category, it will only display on the child category’s archive pages. This is especially useful when it comes to avoiding duplicating content.

After that, let’s look at how to add both regular and child categories to your WordPress site.

Creating a WordPress Category

When composing a post in WordPress, you may easily add a new category. Open the Categories tab in the Document panel on the right hand side.

Then, to create a new category, simply click the ‘Add New Category’ option.

When you click the link, two new boxes will appear, one for each category you want to add. You don’t need to pick anything from the Parent Category selection for a standard category.

Click the ‘Add New Category’ button after you’ve entered in your category’s name.

For your current post, the box for that category will be automatically checked. If you want, you can uncheck it.

You may also add a new category to an existing post without modifying it.

Add your new category by going to Posts » Categories. If you want to create all of your categories before adding content, this is a good option.

You can also change the slug (URL) for your categories using this way. You can also rename and delete categories here. You can even write a description for them.

Creating a Child Category (Sub Category) in WordPress

You can create and update child categories in the same manner you create and edit parent categories.

Open the Categories tab while editing a post and type in the name of your child category. From the dropdown list, choose the category you wish to use as the parent.

You may also add child categories by going to Posts » Categories. Simply type your kid category’s name and choose the parent category from the dropdown menu.

If you desire, your child categories can have their own child categories. For example, we could decide to create a category structure based on continents, countries, and cities, as seen below:

Europe is a category in this case, with the United Kingdom and Spain as children. The United Kingdom’s York and London, and Spain’s Barcelona and Madrid, each have their own child categories.

“Sibling” categories are those within a parent category that are on the same level. The United Kingdom and Spain, for example, are sister categories.

There can only be one parent per category. You can’t have two parent categories with the same sub-category.