19Feb

WordPress add categories and tags on pages without plugin

To add tags and/or categories in you Pages in WordPress. You don’t need an extra plugin. In your theme functions.php, add this function:

function page_tagcat_settings() {
// Add tag metabox to page
// register_taxonomy_for_object_type('post_tag', 'page');
// Add category metabox to page
register_taxonomy_for_object_type('category', 'page');
}
// Add to the admin_init hook of your theme functions.php file
add_action( 'init', 'page_tagcat_settings' );

Subscribe
Notify of

0 Comments
Oldest
Newest
Inline Feedbacks
View all comments