In WordPress, Sometimes we want some functionalities for pages too which are available for posts in WordPress. And mostly what we do, we just install a new plugin for some simple and easily developed functionality in WordPress.
So Here I am going to share how you can add tags to WordPress pages without the use of the plugin. It’s pretty simple and efficient.
Let’s see the code for same.You need to copy and paste below line of code into functions.php file of your theme.
1 2 3 4 5 6 7 | add_meta_box('tags_post_tag', __('Tags'), 'post_tags_meta_box', 'page', 'side', 'low'); register_taxonomy_for_object_type('post_tag', 'page'); } add_action( 'admin_init', 'add_tags_to_pages' ); |
That’s it, You can see the pages, your tags are there on the right side. 🙂
Thank you for reading, good luck and let me know if you run into any problems & I’ll help as much as I can 🙂
Hope this post will helpful for you, waiting for your responses.Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.