I'm working on a site that uses two different pages to filter lists of posts associated with the same custom post type ("media"), and both pages have their own templates-- a more general page named page-media.php
and one that's more narrowly focused via taxonomy, page-music-library.php
. While both of these pages filter lists of posts of the "media" custom post type, I would like each to render the posts in a different single-
view when the post titles are clicked. For the main page-media.php
template, I created a single-media.php
template for single post views associated with that page. However, I'm not quite sure how to define an alternate single-
view associated with the page-music-library.php
template?
I'm seeing from this post and elsewhere that as of WP 4.7, "Post Type Templates" can offer more flexibility in this way, but I'm not clear on whether that feature would apply to my situation. Thanks for any insight here, and please let me know if my objective is unclear in any way.