Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.