As part of a much broader problem I'm trying to tackle, I am wondering if I can automatically create a taxonomy term with the same name as a new post of a specific CPT.
The idea would be as follows. I'd have a cartoon-series CPT. When I create a new cartoon series post, a taxonomy term for the cartoon-series taxonomy would be created with the same name as this new post. Along with that top-level term, two sub-terms would be created: "Episodes" and "Special Features"
So, for each new cartoon series post I create, I'd get a total of three terms added. One with the same name as the post and two under that, that would always be the same for all cartoon series.
A few potential problems I foresee right away:
Can I have terms in a taxonomy that are exactly the same? Like Episodes appearing multiple times as sub-terms.
Can a taxonomy have the same name as a CPT? Ideally, both would be named cartoon-series. The slugs for the sub-terms would need to be the same as I'd be displaying them in the url.
GOOD domain/cartoon-series/<series-name1>/episodes/<episode-name> GOOD domain/cartoon-series/<series-name2>/episodes/<episode-name> BAD domain/cartoon-series/<series-name2>/episodes-1/<episode-name>
"episodes" would need to be the same slug even though they are not the same term. I'm not sure if this is possible even if they are under different top-level terms.
All of this is in effort to solve this problem: Need help with complex custom post type setup
I'm all ears if you have any other ideas!