I have a hierarchical custom post type (missions) setup. I want to create a few child pages for it (discuss, petition, educate), but I want each of those child pages to display a different template.
There does not appear to be a way to use a selected template, like on a normal page, so I thought maybe I could just have the child custom post type pages display content based on their slug.
So the permalinks would appear as:
/mission/mission-01/
- /mission/mission-01/discuss/
- /mission/mission-01/petition/
- /mission/mission-01/educate/
/mission/mission-02/
- /mission/mission-02/discuss/
- /mission/mission-02/petition/
- /mission/mission-02/educate/
Since they are children, and the Discuss pages could all use the same slug, maybe a function that gives all pages with slug /discuss/ the page-discuss-template.php from my theme directory.
Thanks for any help!