Apply categories/tags to pages

same as Category Tag Pages

i’m guessing this could be valuable to many users while costing very little in code


Read-only archive: https://petitions.classicpress.net/posts/216/apply-categories-tags-to-pages

Author: classyMan

Vote count: 5

Status: open


Comments

I’m not seeing a good reason to have this implemented in the core. If anyone needs this, it can easily be done with a few lines of code added to the theme’s functions.php file:

// Add the categories and tags to pages
function add_categories_tags_to_pages() {
  register_taxonomy_for_object_type('category', 'page');
  register_taxonomy_for_object_type('post_tag', 'page');
}

// Display categories and tags in admin
add_action( 'init', 'add_categories_tags_to_pages' );

Or the plugin mentioned by the petitioner. If anyone thinks this should be part of the core, please do share your use case and we can re-open the petition.

1 Like

This topic was automatically closed after 3 days. New replies are no longer allowed.