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

can I use a category as common for more than one custom post types? In this case same category will have more than one type of posts..

share|improve this question
up vote 1 down vote accepted

When you use register_taxonomy(), the second argument is the object_type argument, which accepts either a string or an array. You can pass this an array of objects to apply the taxonomy to, and it will be common between those. So, for example: array( 'cpt_slug', 'post' ) would give you a common taxonomy between cpt_slug and post.

If you want to add the existing taxonomies to a new post type, you can use register_taxonomy_for_object_type()

share|improve this answer

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.