permalinks – What is the best way to relate different custom post types?
I think a better approach for this would be to create a single nested (hierarchical) custom post type.
For example, it can be
Then a single series named
sample-series as a top level post of
series post type:
Then seasons named
season-two etc. can be children of
Similarly, episodes can be children of those seasons, like:
Same thing can be done by default by WordPress
page, since pages are by default hierarchical.
Leave an answer