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

Just something I´ve been wondering for a while:

The Codex shows us two ways of attaching a Taxonomy to a Custom Post Type:

  1. Using the taxonomies argument in the register_post_type function
  2. Using the object_type variable in the register_taxonomy function

Should we use both methods, or is one enough? And do they give the same result?

share|improve this question
Please post your "Update" as an answer, rather than as an edit to the question. – Chip Bennett Nov 30 '12 at 15:21

I did some tests and it seems that we can use either one as long as the taxonomy or post type has been registered earlier in the script.

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.