Timeline for What's the purpose of 'taxonomies' parameter in register_post_type()?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 23, 2015 at 9:55 | vote | accept | Mayeenul Islam | ||
Feb 23, 2015 at 9:21 | comment | added | Pieter Goosen |
@MayeenulIslam I think we lost each other here :-) Custom taxonomies has to be registered with register_taxonomy . When doing so, you do need to asign a taxonomy to a post type, that is the second parameter when registering a custom taxonomy. This registers a custom taxonomy to the specific post type which is set in the second parameter of register_taxonomy . This takes care of everything, so you don't need to assign the taxonomies parameter when registering your post type
|
|
Feb 23, 2015 at 9:15 | comment | added | Mayeenul Islam |
Can I point your attention to this part of Codex: Custom taxonomies still need to be registered with register_taxonomy() . Isn't it saying, Still Need? Isn't that mean, register once here and again there? It's just for clarification. I got your point, @Pieter.
|
|
Feb 23, 2015 at 9:02 | comment | added | Rarst | But makes perfect sense when registering CPT and adding native taxonomies to them. :) | |
Feb 23, 2015 at 6:46 | history | answered | Pieter Goosen | CC BY-SA 3.0 |