How to Add Categories and Tags For WordPress Pages

Categories and tags are used to categorize your content and make it easier for visitors to discover what they’re looking for. When you’re creating a WordPress post, categories and tags can be handy in organizing your content.

By default, when it comes to categories and tags, they are just restricted to posts, so you won’t see any options to add categories or tags to your WordPress page when you create a new page in WordPress.

So in this article, I will show you How to Add Categories and Tags For WordPress Pages with plugin or without a plugin, so keep reading until the end for a thorough understanding.

Method 1) Add Categories and Tags to WordPress Pages Using Plugin

This method of adding categories is the fastest and recommended if you are not techy and want to find a quick solution.

Following are the steps for adding categories and tags on pages in WordPress.

plugin for adding category to wordpress page

Once you’ve completed the above, go back to your wordpress dashboard home, and you’ll see a category/tag option for each page, just as with posts.

add categories to page in wordpress

Note: If there are already too many plugins on your WordPress website, you may use the without plugin approach to keep them from clogging up your server. If your site does not have the ideal hosting, plugins will increase the load on your server, slowing down your website’s performance.

Method 2) Add Categories and Tags to WordPress Pages Without Plugin

Using this method, you will have to be careful and first take a backup in case anything goes wrong as we will hard-core the categories and tags into wordpress without any plugin.

add category to wordpress pages without plugin

Steps for adding categories and tags on pages in wordpress without any plugin.

  1. Login to your WordPress dashboard.
  2. Go to Appearance and then click on Editor.
  3. Go to your site’s functions.php file.
  4. Add the following code to your theme’s functions.php and save your modifications

Code for adding categories to pages

To add categories to pages, include this code in your theme’s function.php file:

function add_categories_to_pages() {
register_taxonomy_for_object_type( 'category', 'page' );
}
add_action( 'init', 'add_categories_to_pages' );

Code for adding Tags to pages

Save the following code in your theme’s function.php file to add tags to pages:

function add_tags_to_pages() {
register_taxonomy_for_object_type( 'post_tag', 'page' );
}
add_action( 'init', 'add_tags_to_pages');

Once you have done with adding the code to your theme function.php file, you can navigate to your pages in wordpress, and you will see a categories and tags section as shown in the below screenshot.

add categories and tags to page in wordpress

Video Guide

How to Add Categories and Tags For WordPress Pages

Benefit Of Adding Categories and Tags to Pages

Categories and tags help you sort your content and make it easier for users to find what they want. When creating a WordPress post or page, both categories and tags can come in very handy for organizing your content.

It will improve the user experience (UX) as users will be able to find the resource or information they need, which will improve the SEO of the website.

Also you as a website owner, you will have peace of mind managing your site content and will have a clear path of where to put the important information on the website.

So Adding categories on the website is a win-win for both the user and the site owner as both will be benefited from the good structure of the website.

Conclusion

Adding categories and tags taxonomies to your wordpress post and pages are an excellent approach to structuring and arranging your content on a website. Although WordPress has default settings for adding categories and tags to posts, there is no functionality for adding the category and tag taxonomy to a page. Hopefully, after reading this post, you will be able to add the tags and category taxonomy to your pages, organize your content on the website, improve user experience and SEO.

Leave a Comment