register_taxonomy to re-use taxononmies over multiple custom post types?
-
I just wondered if I can use register_taxonomy to re-use certain taxonomies over multiple custom post types (i can via the taxonomies) if the properties defined are different from one custom post type to another.
E.g. hierarchical with one and non hierarchical with the other.
E.g. on https://codex.www.ads-software.com/Function_Reference/register_taxonomy
it says for the second parameter:
{{Parameter|$object_type|array/string|A name or array of names of the registered [[Glossary#Post_Type|post type(s)] for this taxonomy object.}}
probably not and I should name it “taxonomy1” and “taxonomy2”
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘register_taxonomy to re-use taxononmies over multiple custom post types?’ is closed to new replies.