How to use categories in wordpress

New Page

What is: Category

Share 109 Tweeter Share Share Facebook Messenger WhatsApp E-mail

Category is one of the default WordPress taxonomies. You can use categories to sort and group your blog posts into different sections. For example, a news website might have categories for its articles categorized under News, Opinion, Weather, and Sports.

Categories help visitors quickly discover the topics your website is about and allow them to navigate your site faster.

what is the category What is the category

The default category on a fresh install of WordPress is “Uncategorized”. If you don’t choose a category for a post, the post is automatically placed in the default category. Only a WordPress admin can change the default category from the Settings » Writing screen.

Default category settings Setting the Default Category

How to add categories

When editing a blog post, you can add it to a category by checking the box next to the category name.

how to add an article to a wordpress category how to add an article to a wordpress category

If you need to add a new category while editing a post, just click the Add New Category link below the list of your existing categories.

También puede agregar una categoría directamente desde la pantalla Publicaciones » Categorías . Escriba un nombre para su nueva categoría y agregue un slug . Puede crear slugs compatibles con URL para sus publicaciones usando letras minúsculas, números o guiones.

Si no escribe algo en el campo de slug, WordPress creará automáticamente un nombre de slug basado en el nombre de la categoría. Los slugs crean un enlace a la página de tu categoría que enumera todas las publicaciones que has creado en esa categoría.

Category in the sidebar Category on the sidebar

Cómo crear una categoría secundaria

Categories are hierarchical, meaning that each one can have child categories. A child category is used for a sub-topic under a broader topic. For example, a news website may have a category News with child categories for Local, National, and Global news.

To create a child category, go to the Posts » Categories screen and select a parent category from the dropdown menu. Then fill in the name for your child category, adding the description and slug are optional.

Now click the “Add New Category“ button and your child category will be created.

Create a child category Creating a child category

How to Edit Categories

Categories can be edited from Posts » Categories screen. Move your mouse to the category you want to edit and then click on the “Edit” link. This will open the editor where you can add or remove parent and child categories, change the category name, slug, or description.

Change category Change category

You can also delete categories from the Posts » Categories screen. Deleting a parent or child category doesn’t delete your posts. WordPress automatically places posts that aren’t assigned to a category in the default category.

An administrator must create a new default category or assign it to an existing category before the default “uncategorized” category can be deleted.

How to Display Categories

Want to make it easy for your website visitors to find your blog post categories?

One common way to do this is by placing a list of your categories in your sidebar.

Categories can be displayed in the sidebar using a categories widget. Go to Appearance » Widgets and drag and drop the categories widget in a sidebar. All your categories will be displayed in the sidebar, except those which do not have posts.

The category widget allows you to display your categories as a dropdown menu or a list. You can also choose if you want to display the number of posts in each category.

Si selecciona la opción Mostrar jerarquía , sus categorías secundarias se indicarán con un estilo especial, que suele ser una sangría antes del nombre de la categoría secundaria. La apariencia dependerá de su tema . Si no selecciona esta opción, todas sus categorías tendrán el mismo aspecto en la lista, ya sean categorías principales o secundarias.

category widget Category widget

You can also add categories to your website’s navigation menu. To do this, go to Appearance » Menus . Then click on “Categories”, select the desired categories in your menu and click on the “Add to menu” button.

Category in the menu Category in the menu

For example, we’ve added our categories to our main menu here at WPBeginner.

wordpress categories in main menu example wordpress categories in main menu example

Categories vs Tags (What’s the difference?)

Categories and tags are taxonomies included by default in WordPress. Categories in WordPress cover larger sections of your website, while tags help identify any posts you’ve created that have been tagged with a specific word.

Think of categories like a table of contents on the cover of a book. They separate your website content into broad topics. Whereas, tags are like the table of contents at the end of a book, as they assign words that describe very specific details of your posts.

One of the biggest differences between tags and categories is that you have to choose a category for your posts, and if you don’t, they’ll appear in the “uncategorized” list. However, you do not need to add any tags.

Categories help visitors understand what your website is about so they can get to the content they’re looking for faster. They can be hierarchical if you use child categories.

Tags are not hierarchical, so there are no parent or child tags.

We have written a comprehensive article defining the best uses of categories and tags that will help you better understand their uses and the difference between the two.

How to Convert Categories to Tags

At some point, you may want to turn your categories into tags or change your tags into categories. To do this, go to Tools » Import and click on “Category and Tag Converter”. Next, click the Run Importer button. After that, a pop-up window will open asking you to install the importer, click on the Run Importer button.

Once the importer is installed, click Activate Plugin and run the importer. Then choose the desired conversion option. Now select the items you want to convert by clicking on each of them and click on the Convert button.

Convert categories to tags Convert categories to tags

We hope this article helped you learn all about WordPress categories and how they work! See further reading below for more information.

You can also subscribe to our YouTube channel for step-by-step WordPress tutorial videos and follow us on Twitter and Facebook for the latest updates.

further reading

  • Categories vs Tags: SEO Best Practices for Ordering Your Content
  • taxonomy
  • Label
  • How to Properly Rename Categories in WordPress (Beginner’s Guide)
  • 55+ Most Wanted WordPress Tips, Tricks & Hacks

Share 109 Tweeter Share Share Facebook Messenger WhatsApp E-mail

Google Google Ubersetzer

Google Translator from Google

Google Traduction


Video How to use categories 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…