How to add category in wordpress

New Page

How to add and remove categories in WordPress?

To add a category, log into your WordPress admin panel and navigate to Posts > Categories . Provide the new category name, slug, description, and select a main element. Click Add Category .

To delete an existing category, hover over it, then click Delete.

Publications » Organize publications by category

Categories provide a useful way to group related blog posts. He may want to create categories for the different topics he covers on his blog. For example, if you have articles covering a specific music genre, you might want to group them into a category.

Categories not only help organize posts, but she can also use categories to display posts in multiple places on her site, making it easier for her visitors to find what they are looking for. For instance:

  • In its menu for visitors to see the publications of a specific category.
  • On particular pages that use blocks that filter posts by category, such as the Query Loop or Blog Posts blocks.
  • In your theme’s available sidebars or widget areas.


  1. Add categories
  2. Select a default category
  3. Categorize your posts
  4. Customize Category Pages
  5. Link to category pages
    1. On your menu
    2. in your pages
  6. Edit or delete categories
  7. Use categories to get discovered
  8. Mass Abduction Categories
  9. Find Category ID
  10. Frequently Asked Questions
    1. My category page says nothing was found!

Add categories

  1. Go to your board
  2. Click Posts → Categories.
  3. Click Add New Category .
  4. Give the new category a name and description.
  5. Click Add to save the new category.

By default, the category will be added as “Top Level Category”. To create subcategories, change the switch and select the top-level category you want to associate this category with.

For example, a food blog might have categories for cakes, pies, and ice cream, all within a top-level desserts category.

A list of categories, including subcategories.Publications → Categories

^ Index ^

Select a default category

A default category is a category a post is assigned to by default when you create a new post. All posts must be given a category. By default, the category is Uncategorized.

  1. Go to Posts → Categories in your dashboard.
  2. Click the ellipsis (three dots) to the right of the category you want to assign as the default.
  3. Select Set as default from the drop-down menu.

The list of categories with an arrow pointing to the three dots to the right of a category name, the menu open and Set Default highlighted. Changing the default Category.


While it is not possible to delete the “Uncategorized” Category, you can rename it to whatever you want by clicking the Edit option in the drop-down menu next to the category name.

↑ Índice ↑

Categorize your Posts

  1. In your dashboard, click on Posts.
  2. Click on the post you want to assign to a category.
  3. Under Post Settings on the right, expand the Category option.
  4. Click the checkbox next to the category you want the post to be assigned to
  5. Click Update or Publish to apply the changes to that post.


If you don’t see the Settings sidebar, click the settings icon at the top of your page. settings-icon-small-screenshot

The Categories section of the post editor will display existing categories to check, or you can use the search box just above the list. It has an Add New Category button at the bottom.

You can select multiple categories for a single post to show in. However, you should not add more than five to 15 categories and tags to a post.

You can remove a post from a category by unchecking the box next to the category name.

New Category from Within A Post

It is possible to quickly add a new category through the post’s Post Settings by clicking on Add New Category.

You will be able to give the category a name and select a parent category.

If you want to add a description to the category, go back to your dashboard and navigate to Posts → Categories to edit the new category.

Ajouter une nouvelle catégorie est un bouton en bas de la liste des catégories dans l'éditeur de messages. Une fois cliqué, il affiche des champs de texte pour le nom de la nouvelle catégorie et la catégorie principale, le cas échéant.

↑ Índice ↑

Customize Category Pages

A category page is a page that displays all of the posts assigned to a specific category. By default, there is an Archives page created for each category. The archives page will have a URL, or site address, of something like


If your site is using a theme that takes advantage of the Site Editor, you can customize the Archives page’s template. Otherwise, it is styled by the theme you have selected.

You can also create a custom category page using any WordPress block that allows you to filter by category. These blocks include:

  • Query Loop block
  • Blog Posts block
  • Post Carousel block

The default Archives page and any page that uses the blocks mentioned above will automatically update with every new post you publish with that category.

↑ Índice ↑

Link to Category Pages

In Your Menu

You can link directly to the Category Archives page from your site’s menu. When your visitors click on the link, they’ll navigate to the archives for the category you linked to. For step-by-step instructions, check out the following guide.

Add Categories to a Menu

If you’ve created a custom category page, you can link to it in your site’s menu like any other page on your site.

Add Links to a Menu


If you have added a category to your site’s menu but do not see any posts on the category page, or a message that says the content can’t be found, this means no posts have been assigned to that category. Once you publish posts with the category they will automatically show on the category page.

In Your Pages

Using text, images, or buttons, you can link to your category pages (both archive and custom pages) throughout your site. The following guide will walk you through adding links to pages and posts on your site.

Add Links to your Site

↑ Índice ↑

Edit or Delete Categories

To edit or delete a category, go to Posts → Categories. Then, click the ellipses (three dots) on the right of any category to find the following options:

  • Edit: Change the name, parent category, and category description.
  • Delete: Delete the category. This removes the category from your site but does not delete any posts which had that category.
  • Set as default: Assign as the default category.

↑ Índice ↑

Use Categories to Get Discovered

People can add specific tags and topics in their Reader for topics they’re interested in following. Then, when your post uses a category they’ve added to their topics, they’ll see your post in their Reader. Therefore, assigning tags and categories to your post increases the chance that other users will see your content.

However, you don’t want irrelevant content on the topics listings or search, and neither do we. That’s why we limit the number of tags and categories used on a public topic listing. Five to 15 tags/categories is a good number to add to each of your posts. The more categories you use, the less likely your post will be selected for inclusion in the topics listings. Learn more about Topics here.

Getting More Views and Traffic

↑ Índice ↑

Bulk Delete Categories

You can also edit your categories in bulk by going to Posts → Categories.

These instructions are referring to the WP Admin interface. To view this interface, click the View tab in the upper right corner and select Classic view.

To bulk delete any categories, check all categories you want to be deleted, and in the Bulk Actions drop-down above the list, select “Delete,” then click the “Apply” button.

↑ Índice ↑

Find the Category ID

You may need to provide the Category ID for access restrictions on specific membership plugins or to implement custom CSS on a particular category page.

You can find the category ID for a category by going to Posts → Categories.

These instructions are referring to the WP Admin interface. To view this interface, click the View tab in the upper right corner and select Classic view.

Scroll over the category that you need a category ID number for, and click the Edit link that appears under the category. You will be taken to the Edit Categories page.

Ensuite, l’ID de catégorie pour cette catégorie est visible dans l’URL de la page après tag-ID en haut de l’écran de votre navigateur :

Dans l'URL, les chiffres après "&tag_ID=" sont mis en surbrillance pour afficher l'ID de catégorie.

^ Index ^

Questions fréquemment posées

Ma page de catégorie indique Rien trouvé !

Si vous avez ajouté une page de catégorie à votre menu et que vous voyez une page introuvable ou rien trouvé lorsque vous l’affichez, aucune publication n’est affectée à cette catégorie.

Une fois que vous avez ajouté une publication à cette catégorie, elle s’affichera automatiquement sur votre page de catégorie.

Plans et prix polyvalents

  • Libre

    cercle sans avion

    Le meilleur pour les étudiants

  • Personnel


    Meilleur pour les fans

  • De première qualité


    The best for freelancers

  • Company

    plan de cercle d'affaires

    Ideal for small businesses

choose a package

Still confused?

Contact Bracket.

Help us improve:

We’re always looking to improve our documentation. If this page didn’t answer your question or left you wanting more, let us know! We love hearing your feedback. For support, please use the forums or contact support form. Thanks!





How to Add Categories and Subcategories in WordPress

Last updated on July 1st, 2022 by Editorial Staff | Reader Disclosure Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

Comparte 145 Cuota Pío Cuota Facebook Messenger WhatsApp Correo electrónico

Do you want to know how to create categories and subcategories in WordPress?

In WordPress, your posts can be organized into different categories and tags. You can even create subcategories for further organization. Using categories and subcategories can help your readers find the content they’re most interested in and improve your website’s SEO rankings.

In this article, we’ll show you how to add categories and subcategories in WordPress, step by step.

Catégories et sous-catégories dans WordPress Catégories et sous-catégories dans WordPress

Understanding Parent and Child Categories in WordPress

Categories are a powerful tool. They’re not just a way to sort your content. They also help you develop a proper site structure that is meaningful and semantic. This is great for your WordPress SEO.

Note: If you’re not clear about the difference between categories and tags, take a look at our guide on categories vs tags. This explains why categories and tags are different, and how to use them correctly.

Now you might be wondering, why and when would someone need to use child categories (subcategories) on their WordPress website?

Let’s say you’re creating a travel blog for different destinations around the world. You might want users to be able to find articles by both country and city.

For example, you might have an article about the best waterparks in the United States. It would make sense to use ‘United States’ as the category for that post.

However, you might also have articles about the best places to eat in New York City, Los Angeles, Chicago, and more. This is where you can use child or subcategories. Then ‘United States’ can become a parent category and the cities can become child categories.

Catégories et sous-catégories dans WordPress Catégories et sous-catégories dans WordPress

A post filed under a child category doesn’t need to also be filed under the parent category. In our example, we could have left ‘United States’ unchecked and just put the post in the ‘New York City’ category.

If you file a post under the child category but not under the parent category, then your post will appear only on the archive pages of the child category.

Having said that, let’s take a look at how to add both regular categories and child categories in WordPress.

Adding a Category in WordPress

You can easily add a new category in WordPress when writing a post.

First, if the sidebar isn’t showing when you’re editing a post, you’ll need to click on the gear icon on the top right.

Then, in the Post panel on the right-hand side, open up the Categories tab.

où trouver des catégories lors de la modification d'un message où trouver des catégories lors de la modification d'un message

You’ll see different categories that you’ve already created.

However, to create a new category, you can simply click the ‘Add New Category’ link.

Ajouter une nouvelle catégorie dans WordPress Ajouter une nouvelle catégorie dans WordPress

Once you click the link, two new boxes will appear where you can add your category.

For a regular category, you don’t need to select anything from the Parent Category dropdown.

Entrez un nom de catégorie et une catégorie parent Entrez un nom de catégorie et une catégorie parent

Once you’ve typed in the name for your category, simply click the ‘Add New Category’ button.

The box for that category will then be automatically checked for your current post. You can uncheck it if you want.

Aperçu de la nouvelle catégorie Aperçu de la nouvelle catégorie

You can also add a new category without editing a post.

Simply go to Posts » Categories and add your new category. This is handy if you want to create all your categories before adding content.

This method also lets you edit the slug (URL) for your categories. You can delete and rename categories and give them a description. See how to add SEO keywords and descriptions in WordPress.

Ajouter une nouvelle catégorie Ajouter une nouvelle catégorie

Adding a Child Category (Sub Category) in WordPress

You can add and edit child categories in exactly the same way you added your parent categories.

When you’re editing a post, open the settings panel and scroll down to the Categories tab.

Next, click the ‘Add New Category’ option and type in the name for your child category. Then select the category that you want to use as the parent from the dropdown list.

Ajouter une sous-catégorie Ajouter une sous-catégorie

Similarly, you can also go to Posts » Categories to add child categories.

Just type in the name for your child category and select the parent category from the dropdown menu.

Sélectionnez une catégorie principale Sélectionnez une catégorie mère

Your child categories can also have their own child categories if you want.

For instance, we might decide to develop a category structure that is used to group multiple types of content together, like this:

Aperçu de la structure des catégories Aperçu de la structure des catégories

Here, News is a category, with the Announcements as child categories.

Categories on the same level within a parent category are sometimes called ‘sibling’ categories. For instance, the Announcements and SEO Tools are sibling categories here.

Categories can only have one parent. You can’t add one sub-category under two different parent categories.

SEO Benefits of Category Based Site Structure

Your category URLs will look something like this:

This is meaningful and helps search engines and visitors understand what your page is about. You also get a chance to add keywords to your URL. Keywords help people find content on search engines.

WordPress also allows you to easily change the /category/ prefix of your category URLs. You can even remove it completely if you want.

Simply go to the Settings » Permalinks page from the WordPress admin panel and scroll down to the ‘Category base’ section.

Change the category's permalink setting Change category permalink settings

Here you can enter the prefix you would like to use and click on the ‘Save Changes’ button to store your changes.

The ‘category’ prefix in your category URLs doesn’t add any benefit to your SEO.

This is why some website owners prefer to remove the

remove the word “category” from URLs on their WordPress category archive pages. You can easily do this using the All in One SEO plugin, so your category URLs look like this:

Simply go to the Search Appearance menu for AIOSEO, then select the Taxonomies tab. Under advanced settings for categories, you will see the option to remove the category base prefix.

AIOSEO Eliminate category prefix base AIOSEO Remove category base prefix

Alternatively, you can also use the FV Top Level Categories plugin. Simply install the plugin and it will remove the word “category” from the URLs of your category archive pages.

Important: If you decide to change the category base on an existing WordPress site, then you’ll need to set up redirects to avoid 404 errors for search engine visitors. For more detailed instructions, please follow our guide on how to change the category base prefix in WordPress.

How to Display Categories and Child Categories in WordPress Sidebar

You can add a widget block to your WordPress sidebar or footer to show a list of categories. In your WordPress dashboard, go to Appearance » Widgets.

If you haven’t changed your widgets from the ones that WordPress puts there by default, you should see the Categories widget block already in place. If not, then you can click the ‘+’ button and add a ‘Category’ block to your widget area.

Add category widget block Add category widget block

By default, the widget will display all of its categories in a flat list, in alphabetical order.

Here’s a look at what they looked like on our test site:

Overview of categories in the sidebar Overview of categories in the sidebar

Tip: Categories will only appear in the list if you’ve assigned at least 1 published post to them.

You can change it to show secondary categories (subcategories) under your main categories if you want. Just enable “Show Hierarchy” option in widget settings like this. Don’t forget to click on the ‘Update’ button.

Show hierarchy in widget blocks Show hierarchy in widget blocks

On their site, you should now see their main categories with the secondary categories nested below.

Tip: If sidebar changes are not showing up, you may need to clear your WordPress cache.

In addition to the default category widget block, you can also create custom category menu links using the WordPress navigation menu. After that, you can add this menu to your header menu, sidebar, footer or other menu locations.

I hope this tutorial helped you learn how to add categories and subcategories in WordPress. You can also check out our article on how to create an email newsletter to increase your website traffic and our comparison of the best WordPress page builders for creating custom designs.

If you enjoyed this article, subscribe to our YouTube channel for WordPress tutorial videos. You can also find us on Twitter and Facebook

Share 145 Quota Pío Quota Facebook Messenger WhatsApp E-mail

Google Google Translator

Video How to add category in wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…