I am working on a site that has Shows, Episodes and Hosts as related Custom Post Types (CPT). The Shows CPT is the Parent while Episodes and Hosts are the Child CPTs. When viewing an Episode from a specific Show, how can I get a URL to all Episodes from the current Episode’s Parent Show?
Here is a link to an Episode from a Beta version of the site (notice the View All Episodes link on the left): http://www.missionmagazineradio.org/beta/?episode=from-the-archives-be-a-person-worth-following-part-2
I’ve looked into the get_post_type_archive_link(‘episode’) template tag but this returns a link to all Episodes, NOT Episodes from the current Queried show.
- The topic ‘Get Link to Archive Page based on Current Post and Parent Post Type’ is closed to new replies.