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

Categories are one of the two main taxonomies in WordPress (along with the tags). They allow you to classify your posts in logical groups and thus ensuring you can find, edit, group and delete any post or a set of posts quickly and easily.

In the following sections, you will read about:

two ways you can use to add categories to WordPress:

  1. Add Categories in WordPress From the Categories Menu on the Sidebar
  2. Create New Categories from the Add New Post Page

two ways to align posts into preferred categories:

  1. Align a Post Within the Add New Post Page
  2. Align Posts in Categories Via the Quick Edit Menu on All Posts Page

 

How to Add Categories in WordPress and Assign Posts to Them

There are a total of two methods you can create categories and two main posts to include posts within them. In the following paragraphs, you will read everything you should know about the topic.

 

Method 1: Add Categories in WordPress From the Categories Menu on the Sidebar

This approach will let you add a new category or sub-category prior to creating an article.

First, enter your WordPress dashboard and go to Posts -> Categories, located in the Sidebar:

WordPress Categories Menu

 

This will open the dedicated Categories page. From here you can create, edit and delete categories and sub-categories, as well as add descriptions and amend the URLs of each individual category:

WordPress Categories Tab

 

Let’s have a more detailed look at the two main sections and see what they do:

WordPress Categories Tab Components

 

  1. This is the area from which you create a new category – you do so by adding a name, deciding whether the new category is a main or a sub-category, changing its slug, and adding a description.
  2. This is the list of all your existing categories – all the main ones and sub-ones. From this area, you can edit, delete, view, and manage all your existing categories. When you create a new one from the left side of the screen, it will automatically appear here, alongside all others.

To create a new main category (also known as a parent category), head to the left area of the page and fill in the areas below the Add New Category. This means to choose a name, slug, and add a description:

  • Category Name: choose one that conveniently describes the group of articles that would be sorted within this category. In our case, this is WordPress Fundamentals.
  • Slug: This allows you to create a custom URL for your new directory. The slug can enhance SEO, and to use the option most efficiently, choose a short phrase that also contains a keyword.
  • Parent Category: To make your new category a main one, you should select None from this menu – this will ensure that your new category won’t belong to any other one, and thus, remain the main one.
  • Description: It allows adding a few words about your new category. Although it is not mandatory, we highly recommend you add a description to all your categories and sub-categories, as this makes the management of your posts and category sections far more convenient in the long term.

Here’s how ours turned out to be:

WordPress Categories Tab Example

 

Now, to create the new category with these credentials, click on the blue Add New Category button.

WordPress Add New Category Button

 

After you’ve clicked it, WordPress will automatically create the category and add it to the top of the list on the right of the screen:

WordPress New Category List

 

Now, let’s create a new sub-category, a.k.a. child category. As mentioned, this is a category, which is contained within another one, named the main category or a parent category.

Once again, head to the left side of the screen and fill in the credentials for your new category:

WordPress WordPRess Category Box

 

However, this time take a closer look at the Parent Category menu. Click the small arrow and have a look at the drop-down menu. This is a list with all your already existing categories:

WordPress Adding Parent Category

 

Choose one from this list and select it by clicking on it. When you do so, this selected parent category will contain the one you are creating right now:

WordPress Select Parent Category

 

When you select your Parent Category, click on the Add New Category.  Once again you will see your newly created one at the right of the screen. However, this time it won’t appear on the top of the categories list, but instead, will be placed just below the main category it is contained within. Also, you should notice that all sub-categories contain a hyphen before their name:

WordPress New Category List

 

This is how you can create categories and sub-categories via the Categories menu.

In the next section, you will find out how to create new categories within the New Post section.

 

Method 2: Create New Categories from the Add New Post Page

This approach will let you add a new category or sub-category while you are editing a new post.

First, enter the Add New Post page:

WordPress Add New Post Menu

 

This will open the Add New post creation menu. Have a look at the right section of the page. There you should find a Categories box with all your main and sub-categories:

WordPress Posts Tab Categories Box

 

Within this box and below the list of all the categories, you should notice a blue + Add New Category button:

WordPress Add New Category Button

 

When you click it, a new menu with options will appear:

WordPress Add New Parent Category Posts

 

In the top field, you add the name of your new category, and via the bottom one you choose its parent category (should you wish to create a child category.)

In our case, we decided to add a new sub-category:

WordPress New Parent Category

 

When you decided the name of your new category and whether it is a main or a sub-category, click on Add New Category. This will add it to the list above:

WordPress Categories List in Posts Section

 

Now you have added a new category on the Post Creation page!

Keep in mind that by using this method, you won’t be able to add a Description and amend the Slug of your new category.

In the next section, we will see how to align a new post in a preferred category, and then we will see how categories can benefit a better SEO for your site.

 

How to Align a Post to a Category

There are two straightforward methods for alignment:

Method 1: Align a Post Within the Add New Post Page

Enter the New Post page, from Dashboard->Posts->Add New. Then have a look at the right of the panel, where the Categories box should be placed:

WordPress Categories Box in Posts Tab

 

Now,  simply tick out the categories which you wish to contain your new post. In our case, these would be two main WordPress Fundamentals and WordPress Tutorials. Also, we will include the post in the sub-category WordPress Widgets:

WordPress Categories Box

 

Now, you can either publish your post or save it as a Draft. For this example, we will publish it. When we do so, all the selected categories will appear at the top of the list:

WordPress Categories Box Select Options

 

Remember that you can align your post to as many or as few categories as you decide and do so as many times you decide.

 

Method 2: Align Posts in Categories Via the Quick Edit Menu on All Posts Page

To enter this menu, go to Dashboard->Posts->All Posts. Here you will see a list of all your posts:

WordPress All Posts List

When you hover your mouse over a certain one, a menu will appear:

WordPress Posts Tab Menu

 

Click on Quick Edit. This will open a new box with options:

WordPress Posts Quick Edit Menu

 

Along with other options, from here you can quickly align your post to different categories via the Categories box:

WordPress Edit Post Quick Menu Categoeis

 

Simply add a tick to each main and sub-category that you wish to contain your post and then click on Update on the far right. This will ensure that your changes are applied:

WordPress Edit Post Update Button

Conclusion

WordPress categories are important, because as the number of your posts gradually expands, so does the need of implying order in the blog section for both you and your visitors. In the next two sections, you will find out how to do so by adopting two equally handy methods.

Along with distributing your content, you should also secure your pages. Add encryption with SSL Certificates and ensure a safe and secure browsing experience for your visitors. Contact us for more details!

Related:

Was this article useful?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Newest Articles:

How to Add a Site Logo Block in WordPress with Gutenberg

Adding a site logo in WordPress with Gutenberg is straightforward and requires only a few mouse clicks and just several minutes of your time. In the following paragraphs, you will read how to add a site logo to your WordPress website via the Gutenberg editor step by...

How to Add Images to WordPress with Gutenberg

Adding images with Gutenberg is quite simple. The block editor is very user-friendly and allows you to add images in several ways. In the following paragraphs, you will read about 4 methods you can instantly use to upload the media files you want.   How to Add...

How to Disable Gutenberg in WordPress

If Gutenberg is not suitable for your needs and wish to switch back to the Classic Editor, continue reading, as in this article we will show you 3 simple methods of how to disable the block editor. In the following sections, you will read how to disable Gutenberg by:...

5 Best Gutenberg Plugins for WordPress

One of the fastest and most convenient ways of enhancing the functionalities of Gutenberg is by using various WordPress plugins. Although Gutenberg is very versatile and feature-rich by itself, the open-source nature of WordPress has inspired developers all around the...

How to Add a Contact Form with WordPress Gutenberg Editor

If you are using Gutenberg to craft your WordPress website, then you should know that the process is very easy, especially by using the block editor. In the following paragraphs, you will read how to add one to your pages.   How to Add a Contact Form with...

Ready to Create Your Website?