WordPress.org

Forums

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

  1. katart17
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.