WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Get Link to Archive Page based on Current Post and Parent Post Type (1 post)

  1. katart17
    Member
    Posted 4 months ago #

    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.

    Any ideas?

    https://wordpress.org/plugins/types/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.