Blogging

2 Methods to Add Categories and Tags to WordPress Pages

How to Add Categories and Tags to WordPress Pages
Spread the love

When creating a WordPress post, both Categories and tags are helpful in organizing all the contents and make it easier for users to find what they are looking for. Do you want to learn how to add categories and tags to WordPress page? By default, it is impossible to do so. In this article, you will learn how you can add categories and tags to your WordPress page with and without plugins.

This is quite different from adding them to WP posts.

SEE>>> How to Start A Blog and Make Money

How to Add Categories and Tags to WordPress Pages With Plugin

This is the easiest and fastest way to do this. It does not require any coding skills. Just a plugin.

  1. Login to your WordPress account
  2. Go to plugins, click add new
  3. Search for Create And Assign Categories For Pages
  4. Install and activate the plugin

See the results below;

2 Methods to Add Categories and Tags to WordPress Pages

Before the installation of the plugin

 

how to add categories and tags on WordPress pages plugins

After installation of the plugin

Recommended>>> How to Create a Blog for Free on Google and Earn Money

How to Add Categories and Tags to WordPress Pages Without Plugin

If for some reason you do not want to install an additional plugin on your site, you can use this method. The second way to add categories and tags to Pages is to add custom PHP code to the functions.php file of the active WordPress theme on your site.

  1. Login To Your WP account.
  2. Go to Appearance and then, Theme File Editor.
  3. Click functions.php
  4. Add the following lines at the very end of your theme’s functions.php then save your changes
function add_categories_to_pages() {
register_taxonomy_for_object_type( 'category', 'page' );
}
add_action( 'init', 'add_categories_to_pages' );
function add_tags_to_pages() {
register_taxonomy_for_object_type( 'post_tag', 'page' );
}
add_action( 'init', 'add_tags_to_pages');

The result of this PHP code will be similar to the above plugin.

If you enjoyed this article, then please subscribe to our YouTube Channel for WordPress blogging video tutorials and how to make money online. If you have any questions, please leave us a comment. Also, If you think I missed a step or have any suggestions for us; please let us know. We'd love to hear from you!

Leave a Comment

köpek eğitimi istanbul satılık doberman İstanbul travesti Ankara travesti İzmir travesti Antalya travesti İstanbul travestileri İstanbul travestiler Travesti İstanbul