Add category to page wordpress

New Page

How to add categories and tags to WordPress pages

Last Updated Mar 2, 2022by Editorial Team | Reader Disclosure Disclosure : Our content is endorsed by the reader. This means that if you click on some of our links, we may earn a commission. See how WPBeginner is funded, why it’s important, and how you can support us.

Shares 146 Share Tweet Share Facebook Messenger WhatsApp Email

Want to set up categories and tags for your WordPress pages, but don’t know how to get started?

Categories and tags help you organize your blog posts and make it easy for users to find what they’re looking for. However, they are only available for posts by default, not pages.

Dans cet article, we will show you how to add categories and tags to WordPress pages.

How to add categories and tags to WordPress pages How to Add Categories and Tags for WordPress Pages

Why add categories and tags to WordPress pages?

Categories and tags are default WordPress taxonomies for your blog posts. Categories are a broad grouping of content, while tags help describe specific details of your content. You can read more about the difference in our categories vs tags guide.

By default, both categories and tags are only limited to blog posts in WordPress.

Please click on a new page, note that no options are available for categories or tags for a WordPress page.

No categories or tags for the pages. No categories or tags for pages

However, you may want to add categories and tags to your WordPress pages. It can help you organize and sort your content if you have many pages. It can also improve your site navigation and help your visitors find related pages on your WordPress website more easily.

If you have multiple sales pages for different products on your online store, for example, you can group them into broad categories.

You can do the same thing for different feature pages for your apps and software. For example, OptinMonster groups several feature pages under the ‘Features’ category.

optinmonster-feature-pages-example optinmonster-feature-pages-example

Let’s see how you can add categories and tags to your WordPress pages.

Add Categories and Tags to WordPress Pages

La forma más fácil de configurar categorías y etiquetas para sus páginas de WordPress es usando el complemento Páginas con categoría y etiqueta . Es un complemento gratuito de WordPress y funciona de inmediato sin necesidad de configuración adicional.

The first thing you need to do is install and activate the plugin. For more details, please see our guide on how to install a WordPress plugin.

Once activated, go to Pages » Add New and you will find post categories and tags now available for your WordPress pages.

Categories and tags for pages Categories and tags for pages

Next, you can create categories and tags for your pages.

To add a category, head over Pages » Categories from your WordPress dashboard and then enter a ‘Name’ and ‘Slug’ for your category.

Aggregate number y slug for new page category Add a name and slug for the new page category

After that, you can scroll down and select a ‘Parent Category’ for your category.

Once you’ve entered these details, simply click the ‘Add New Category’ button.

Choose the main category and add a new category Choisissez la catégorie parent et ajoutez une nouvelle catégorie

You can then view your newly added category for your pages.

If you want to delete a category, then simply click the checkbox next to it and select ‘Delete’ from the Bulk Action dropdown and click the ‘Apply’ button.

Voir la catégorie de votre page Afficher la catégorie de votre page

Next, you can assign your WordPress pages to the categories you just created.

To start, simply edit or create a new page. From the WordPress content editor, you can now select the relevant category from the menu on your right. For instance, we created a feature page and marked it under the Features category.

Select your category and enter tags Select your category and enter tags

Similarly, you can add tags for your WordPress page under the ‘Tags’ field. If you want to add multiple tags, then simply separate them using a comma.

For example, you can add keywords and phrases that help describe your content. In our case, we added the terms ‘exit intent’ and ‘OptinMonster’ as tags.

After selecting your category and adding tags, simply update or publish your WordPress page.

We hope this article helped you add post categories and tags to your WordPress pages. You may also want to look at your guide on how to create a business email address, and the best email marketing software.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Shares 146 Share Tweet Share Facebook Messenger WhatsApp Email

Posts » Organize Posts with Categories

Categories provide a helpful way to group related blog posts together. You might want to create categories for different topics you cover in your blog. For example, if you have articles that cover a specific genre of music, you might want to keep those grouped together in a category.

Categories not only help keep posts organized, but you can also use categories to display posts in several places across your site, making it easier for your visitors to find what they’re looking for quickly. For example:

  • On your menu for visitors to view posts of a specific category.
  • On particular pages that use blocks that filter posts by category, like the Query Loop or Blog Posts blocks.
  • In the available sidebars or widget areas of your theme.

Table of Contents

  1. Add Categories
  2. Choose a Default Category
  3. Categorize your Posts
  4. Customize Category Pages
  5. Link to Category Pages
    1. In Your Menu
    2. In Your Pages
  6. Edit or Delete Categories
  7. Use Categories to Get Discovered
  8. Bulk Delete Categories
  9. Find the Category ID
  10. Frequently Asked Questions
    1. My Category Page says Nothing Found!

Add Categories

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

By default, the category will be added as a “Top level Category.” To create subcategories, toggle the switch, and choose the top-level category you want this category associated with.

For example, a food blog might have categories for Cakes, Pies, and Ice Cream, all under a top-level Dessert category.

A list of categories including subcategories. Posts → Categories

↑ Table of Contents ↑

Choose 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 category list with an arrow pointing to the three dots to the right of a category name, the menu opened, and Set as 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.

↑ Table of Contents ↑

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 from the post editor will display existing categories to check off, or you can use the search field 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.

Add New Category is a button at the bottom of the category list in the post editor. Once clicked, it shows text fields for the New Category Name and the Parent Category if applicable.

↑ Table of Contents ↑

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 https://yourgroovysite.com/category/categoryname/.

💡

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.

↑ Table of Contents ↑

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

↑ Table of Contents ↑

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.

↑ Table of Contents ↑

Use Categories to Get Discovered

People can add specific tags and topics in their WordPress.com 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 WordPress.com 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

↑ Table of Contents ↑

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.

↑ Table of Contents ↑

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.

Then the category ID for that category is visible in the page URL after tag-ID at the top of your browser screen:

In the URL, the numbers after "&tag_ID=" are highlighted to show the Category ID.

↑ Table of Contents ↑

Frequently Asked Questions

My category page says Nothing found!

If you’ve added a category page to your menu and you see a page not found or nothing found when you view it, no posts are assigned to that category.

Once you add a post to this category, it will automatically show up on your category page.

Versatile plans and pricing

  • Libre

    plan-free-circle

    Ideal for students

  • Personnel

    plan-personal-circle

    Ideal for hobbyists

  • Prime

    plan-premium-circle

    Ideal for freelancers

  • Company

    plan-business-circle

    Ideal for small businesses

Choose a package

Still confused?

Contact support.

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!

Name

E-Mail

Website

Δ

Updated on July 12, 2021 by Phoebe

The Ultimate Guide to Display a Category Page in WordPress

When it comes to organizing the content for the website, it is crucial to make proper use of categories and tags. The category proves effective to group your content, develop a logical site structure, and offer great reading experiences to your visitors. This enhances the usability and accessibility of your sites, which are indispensable elements for the success of a web online business.

Another important element is the category page, serving as an index of all posts that belong to a particular subject. 

Understanding how to display category pages in WordPress will facilitate your business development, increase conversions as well as enhance your overall SEO.

Let’s get to know the category page first!

  • Category Page: An Essential Piece of an Online Marketing Strategy
  • How to Improve SEO of Your Site and Overall User Experience with Category Page
  • How to Display Category Pages in WordPress
  • How to Display Category Description on the Category Archive Page
  • How to Display Subcategory on the Category Archive Page

Category Page: An Essential Piece of an Online Marketing Strategy

In simple words, the category page lists all posts that are assigned to one category or multiple categories. It means that this page helps the site owner to group posts having a similar topic together and makes locating content-related posts easier.

There are 2 main reasons why you should capture the full capabilities of category pages:

  1. To improve the SEO of your website: Your category archive page will work as a landing page when readers search for topic-related keywords or phrases. Since it helps driving naturally targeted traffic to your site, your overall domain authority is boosted considerably, leading to a higher ranking on Google SERPs.
  2. To improve the user experience: With the category page, you encourage visitors to read more posts in the same category they are interested in. It’s also useful if they want to navigate to other posts on your site. On top of that, when using Google Analytics to identify which category gains the most popularity, you can put more effort to improve the posts on that category page. 

How to Improve SEO of Your Site and Overall User Experience with Category Page

When we talk about the category page and its capability, the category itself, its slug, description, and subcategory should be taken into consideration. Since the category and its slug take important parts in leveraging your marketing opportunities, you need to keep in mind some points:

  • Make sure you use a clear, descriptive, and content-related category name, such as “Films”, “Music” instead of “Other forms of entertainment”.
  • Cover a large expanse of your blog posts with broad categories. 

In addition to the category on your website, the separate category description is an interesting and significant feature that you should take full advantage of. Using a category description not only enhances your user experiences but also makes the category clearer and more informative.

The subcategory is usually known as the child category which is narrower than the parent category. For example, you have a main category named Business. Then you divide this parent category by going more in-depth into groups such as Sales, Marketing, etc.

Applying and showing subcategories help you boost the SEO of your website and provide better browsing experiences for visitors who can easily navigate to the different types of content.

How to Display Category Pages in WordPress

A category page can include posts from a single category or multiple categories. Let’s follow our guide to display two kinds of category pages in WordPress.

#1 Display a Page Featuring Posts from a Single Category

Viewing Directly

When a category is created, WordPress will automatically generate a page including posts from that category. In order to display that page, you just need to do some simple steps:

  1. Go to Posts → Categories
  2. Navigate to Categories, then click View under your desired category

 

categorypage_view

 

categorypage_view1

When you click View, a category page will appear and you can get a direct link to this page. However, you will see the category base in your URLs, which causes difficulty in getting a higher Google ranking. There is a simple way to remove a category on a slug in the archive page link: 

  1. Go to Settings → Permalinks
  2. Choose Custom Structure
  3. Add /%category%/%postname%/ after your domain
  4. Enter “.” to Category base

category_permalinks

Showing in Menu and Sidebar

There are 2 steps to show the category page in the menu and sidebar:

  1. Assign posts to categories. First, you locate Posts and choose the post that you want to add to a category. On the right, you will see Category options. Just click on your desired category and Update your change.
  2. Display the category page in navigation menus and widget

Remember this: before displaying categories in the menu, you have to make sure that these categories have posts filed under them.

In menus, go to Appearance → Menus, select categories and click Add to Menus.

categorypage_menus

In the sidebar, go to Appearance → Widgets, then choose the categories that you want to appear in the sidebar and click Add Widget.

categorypage_widget

When you want to show subcategories in the sidebar, drag and drop categories to a Sidebar. Then check the box next to Show hierarchy in categories widget’s settings and click Save.

#2 Display a Page Featuring Posts from Multiple Categories

Besides the page showing posts from a specific category, you may want to display posts on a page from multiple categories. Installing Advanced Custom Fields Pro (ACF Pro) plugin is an ideal option. After installing and activating ACF Pro, let’s follow these steps to display the page:

  1. Go to Pages → Add New
  2. Enter the name of this page (it should be a larger name)
  3. Locate display messages
  4. Select your favorite categories and set the number of posts in each category.
  5. Click Add Rowacp_category_page

How to display category description on category archive page

Category descriptions are usually displayed automatically on category archive pages. However, since sometimes your theme doesn’t support this feature, you need to take further steps to edit your theme files.

  1. Connect to your WordPress site using an FTP client (Archive Transfer Protocol)
  2. Vaya a la carpeta /wp-content/themes/your-current-theme/
  3. Navigate to the category.php file and edit it. In case your theme does not have this file, you must edit the file archive.php
  4. Copy and paste the code found below

<?php the_archive_description( ‘<div class=”taxonomy-description”>’, ‘</div>’ ); ?>

<h2id=”Display-Subcategory”>View subcategory on category archive page

What if the category has subcategories and you want to display a list of all child or child categories on the main archive page?

Let’s copy and paste this code into your archive.php file!

if (is_category()) { $this_category = get_category($cat); } ?> <?php if($this_category->category_parent) $this_category = wp_list_categories(‘orderby=id&show_count=0 &title_li=&use_desc_for_title=1&child_of=’.$this_category->category_parent. “&eco=0”); plus $this_category = wp_list_categories(‘sort by=id&depth=1&show_account=0 &title_li=&use_desc_for_title=1&child_of=’.$this_category->cat_ID. “&eco=0”); if ($this_category) { ?> <ul> <?php echo $this_category; ?> </ul> <?php } ?> Terminates

In terms of category, category pages are extremely beneficial not only for users to get what they are looking for quickly, but also for the website owner to maintain a cohesive website. 

Knowing what a category page is and how to display it in the menu with different forms is essential for all site owners.

With the growth of your blog content, you need to take category pages to a whole new level by using them to improve your website’s SEO and improve your audiences’ reading experiences. 

To optimize a category page, it is necessary to use the appropriate number of categories, eliminate the “category” from the WordPress URL, and consider the category description and subcategories junto con ella. 

In the event that plane hacer that a private sea category, consult nuestra guide completa sober how to hide a category in WordPress aquí.

Have a question about the category page? Please leave a comment in the box below!

CategoriesWordPress Tutorials

Google Google translator

Google Google Translate


Video Add category to page wordpress

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…