Order of operations: CPT registration; Custom Taxonomy registration
-
I’ve been unable to get any archive pages to work with either my Custom Post Type or Custom Taxonomies.
One thing I’m reading is that a Custom Taxonomy must be created BEFORE a Custom Post Type. (This is counter-intuitive. In my case, I naturally started with the creation of a Custom Post Type, and it was only later that I thought: “Ok, how can I add in Taxonomies to this?”)
So my CPT UI-created CPT type was created first, registered first. Then all my CTP-UI-created Custom Taxonomies were created afterwards, and presumably registered after my CPT.
As a result (at least from what I’m reading), none of my taxonomy templates work.
Is there a way to somehow bump my CPT UI-created Custom Post Type to the bottom so it gets registered with WordPress last, i.e., after all Custom Taxonomies have been registered? Maybe this will magically solve my ongoing issue with creating Taxonomy templates?
(I just assumed all this Custom Taxonomy display business would be baked in functionality, something I could just hook into via URL string. Au contraire!)
Mark
- The topic ‘Order of operations: CPT registration; Custom Taxonomy registration’ is closed to new replies.