WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to be able to add tags to my pages just like I can with posts.

What would I need to do to enable the tag editor/entry for the page editor?

share|improve this question
up vote 3 down vote accepted

You can use the register_taxonomy_for_object_type function.

The following adds the default 'tag' and 'category' taxonomies to pages:

register_taxonomy_for_object_type('post_tag', 'page');
register_taxonomy_for_object_type('category', 'page');
share|improve this answer
Thanks Stephen. This works! I assume there's no need to use add_meta_box('tagsdiv-post_tag', __('Page Tags'), 'post_tags_meta_box', 'page', 'side', 'low'); – Scott B May 9 '12 at 12:55
Nope, just the above. – Stephen Harris May 9 '12 at 13:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.