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

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 by hovering your mouse button over Posts and selecting Add New in the Sidebar:

WordPress Add New Post Menu

 

This will open the Add New post creation menu:

WordPress Add New Post Tab

 

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 – How to Add Categories 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.

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 Make WordPress Show Widgets on Specific Pages

By default, WordPress displays the activated widgets on all pages across your website. However, there’s a way to make the platform display them only on selected pages. In the following paragraphs, you will read how to do so.   How to Make WordPress Show Widgets...

How to Edit Footer Widgets in WordPress

Editing your footer widgets can make your website more practical and user-friendly and increase user engagement and conversion rates. In the following paragraphs, you will read how to access the footer widget settings and all the ways you can personalize it.  ...

How to Backup Your WordPress Site

To backup your website means to make a full copy of your site’s content, data, and settings as they were at a specific point in time. The idea is that you can replace your current site with the backup version in case an irreversible issue occurs, or you simply don’t...

How To Change Fonts in WordPress

Accessing and changing the font settings is a straightforward process. You can tweak your fonts either via the Theme Customization page or via a plugin. Either way, there are plenty of options for you to experiment with.   How To Change Fonts in WordPress  ...

How to Add Logo to the WordPress Header

There is a default way of adding a logo on your site, which is available with almost all themes. Keep in mind, however, that there are WordPress themes that are created with a different approach and might well come with a different way of accessing the customization...

Ready to Create Your Website?