WordPress add category to page

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 Choose the parent category and add a new category

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.

See your page's category View your page's category

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 the tags Select your category and enter the 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

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 WordPress add category to page

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…