WordPress Categories: Add & Assign New Post Category
To add a new category in WordPress and assign it to a post, go to Posts > Categories, enter the name, and click Add New Category. Then, when editing a post, check the box next to that category in the Categories panel on the right side and click Update. This article explains the process in detail, including how to create subcategories, assign categories correctly, and avoid common mistakes.
Background: What Are WordPress Categories?
Categories are a built-in taxonomy in WordPress used to group posts by topic. Unlike tags, which are more granular and descriptive, categories are meant to be broad, hierarchical groupings. For example, a food blog might have categories like “Recipes,� “Restaurant Reviews,� and “Cooking Tips,� with subcategories under “Recipes� such as “Desserts� and “Main Courses.� Categories help organize your content and improve user navigation, as visitors can browse all posts within a category. They also play a role in SEO by creating archive pages that search engines can index.
How to Add a New Category
Adding a category is straightforward. Here are the steps:
- Log in to your WordPress admin dashboard.
- Go to Posts > Categories in the left sidebar.
- In the “Add New Category� form, enter the category name (e.g., “Tutorials�).
- Optionally, enter a “Slug� (the URL-friendly version of the name). If left blank, WordPress will generate one automatically.
- Select a parent category if you want this to be a subcategory. For a top-level category, leave “Parent Category� as “None.�
- Add a description if desired (this is optional and not displayed by default on most themes).
- Click Add New Category.
The category will now appear in the list on the right side of the screen, and it will be available in the post editor.
How to Assign a Category to a Post
Once the category exists, assigning it to a post is simple. While editing a post (either a new one or an existing one), look for the “Categories� box in the right sidebar (or below the editor in some setups). Check the box next to the category you want to assign. If you want to make it the primary category, you can also click “Set as primary category� if your theme supports it (this option appears when you hover over the category name). Then click Update (or Publish for a new post) to save your changes.
You can assign multiple categories to a single post by checking multiple boxes. However, it’s best practice to keep categories limited to one or two per post to avoid confusion and maintain a clear structure.
How to Choose Categories Wisely
Choosing the right categories is more about planning than technical execution. Here are some guidelines:
- Keep them broad: Categories should represent the main sections of your site. For a tech blog, you might have “Hardware,� “Software,� and “Tutorials.�
- Avoid overlapping categories: If two categories cover the same topic, it confuses readers and dilutes your SEO. For example, don’t have both “Laptops� and “Notebooks.�
- Use subcategories for specificity: Instead of creating a flat list of 50 categories, use parent-child relationships. For instance, “Software� can have subcategories “Windows,� “macOS,� and “Linux.�
- Plan for growth: Think about future content. If you’re starting a food blog, “Desserts� is a good category, but “Vegan Desserts� might be too narrow if you only post about them occasionally.
Common Problems and How to Fix Them
Several issues can arise when adding or assigning categories:
- Category not showing in the post editor: This usually happens if you’re using a block theme or a plugin that hides the Categories panel. In the post editor, click the three-dot menu in the top-right corner, select “Preferences,� then under “Panels,� ensure “Categories� is toggled on.
- Category appears but the post doesn’t show under it: This can be due to caching. Clear your browser cache and any caching plugin (like WP Super Cache or W3 Total Cache). Also, check that the post status is “Published,� not “Draft� or “Pending.�
- Accidentally assigned to the wrong category: Simply uncheck the wrong category and check the correct one, then update the post.
- Deleting a category doesn’t delete the posts: WordPress will ask what to do with the posts. You can choose to move them to another category or leave them uncategorized. Be careful—if you choose “Delete,� it only deletes the category, not the posts.
Categories vs. Tags: What’s the Difference?
A common confusion is between categories and tags. Categories are hierarchical and broad; tags are flat and specific. For example, a post about “The Best Laptops for Students� might be in the category “Hardware� and tagged with “laptops,� “students,� and “budget.� Tags are optional and are used to describe the post in more detail. Both help with SEO and user experience, but they serve different purposes. Overusing tags can be just as bad as having too many categories—keep both organized and relevant.
Frequently Asked Questions
Can I add a category directly from the post editor?
Yes. In the post editor’s Categories panel, click the “+ Add New Category� link. A text field appears where you can type the new category name and click “Add New Category.� This is faster than going to the Categories screen, but it won’t let you set a parent or slug until after creation.
Why can’t I see the Categories panel in the block editor?
Sometimes the panel is hidden. Click the three-dot menu in the top-right, choose “Preferences,� then go to “Panels� and make sure “Categories� is checked. If you’re using a plugin that removes it, you may need to deactivate that plugin temporarily.
How do I make a category a subcategory?
When adding a new category, select a “Parent Category� from the dropdown. You can also edit an existing category by clicking “Edit� under its name and changing the parent. The hierarchy will be reflected on the category archive pages and in widgets.
Does assigning a category affect SEO?
Yes. Category pages are indexable by search engines, and having a clear, logical category structure helps search engines understand your site’s content. Use descriptive category names that include relevant keywords, but avoid stuffing. Also, make sure your category pages have unique titles and descriptions if possible.
Can I assign a category to multiple posts at once?
Yes. In the Posts list screen, select the posts you want to update using the checkboxes, then choose “Edit� from the “Bulk Actions� dropdown and click “Apply.� In the bulk edit panel, you can add or remove categories for all selected posts at once.
Alternatives to Categories
If categories don’t fit your needs, WordPress offers other ways to organize content. Tags are the obvious alternative for more specific topics. You can also use custom taxonomies—for example, if you have a book review site, you might create a custom taxonomy called “Genre� with terms like “Mystery� and “Science Fiction.� Custom taxonomies are more flexible and can be hierarchical or non-hierarchical. Plugins like “Custom Post Type UI� allow you to create them without coding. Another option is to use menus to create a custom navigation structure that doesn’t rely on categories at all.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.