Home » WordPress Tutorials » Basics » How to Add Categories in WordPress and Assign Posts to Them

How to Add Categories in WordPress and Assign Posts to Them

Basics

If you want to have any structure on your website most often than not you’ll have to divide your content into categories.

Adding categories in WordPress is a fairly simple task. You are literally two steps away from categorizing your content.

 

Step 1: How to Add Categories in WordPress

As well as the Post creating, to add a new category, you’ll just have to hover the mouse over the Posts button. Then click on Categories.
How to Add Categories in WordPress
At a glance, this page is a bit more complex than the post-creating one, but in reality, it’s not.  Just add the chosen category name, the slug (this is what will appear in the URLs), and the Parent of the new category, if there is one.

Read: What is Slug in WordPress

The bars where you’ll have to fill in the chosen category name, the slug, and choose if this is a child category (subcategory), are on the left part of the screen. If you don’t need(or have) Parent category, just leave it as it is. Saying None.

It’s not necessary to type any description, although it would only help. When ready, click the Add New Category button.

For the purpose of this tutorial, we will make a new category named WordPress.
WordPress Categories
Your first category is ready!

If you want to add a sub-category, just follow the steps above. This time just select the already created category as a parent for the new one.
Press Add New Category again to save the new sub-category.
Categories WordPress
If you created a category that you don’t need anymore Read: How to Delete Categories in WordPress

 

Step 2: Assign a Post to a Category

Now, after you’ve created the categories you need, you’ve put them in the right hierarchy, and you are ready to assign the new posts (and the old ones, if you wish) to the appropriate category.
You can either assign posts to categories one by one, as shown in the image below…
How to Create Categories on WordPress
…or you can do this in the so-called bulk action.

To do that, go to Posts -> All Posts.

Select the posts you want to add to a category, click on the Bulk Actions tab, select Edit and finally press the Apply button.

Adding Categories to WordPress

A few options will show up in front of you.  One of them is the Categories section. Select the category you want to add those posts to and click on the Update button.

List WordPress Categories

After clicking on the Update button the posts are assigned to the chosen category.

Check out our WordPress Hosting Plans.

Was this post helpful?

i

Relevant tags:

Create your WordPress website today!

Connect

Editor’s picks:

Gutenberg Tutorial: How to Move Blocks in WordPress

What you need to know: The WordPress Block Editor allows you to move blocks up and down the document structure in order to rearrange the content contained within those blocks. The most popular way of moving blocks is by dragging a block from one position and dropping...

Gutenberg Tutorial: Deleting a Block in WordPress

What you need to know: You can delete a block in WordPress by selecting it and pressing the Delete key on your keyboard. Alternatively, you can press the three-dot button in the Contextual Toolbar to access the Remove block option. Lastly, it is also possible to...

Gutenberg Tutorial: Using Block Patterns in WordPress

What you need to know: A block pattern in WordPress is a group of two or more regular WordPress blocks. These blocks come in a sensible layout that you wouldn’t need to modify in most cases. Instead, you just need to add your own content to the block pattern. You can...

Gutenberg Tutorial: Using WordPress Reusable Blocks

What you need to know: Gutenberg features reusable blocks that allow you to quickly insert the same content with one click. You can mark any block or block pattern as reusable. You can find your reusable block collection in the WordPress Block Library. Have you ever...



Create your WordPress website today!


Start now