Change CPT single layout based on which taxonomy was clicked
Posted on 2014-10-09
I'm not even sure this can be accomplished.
1. I've got 1 custom post type: Participant.
2. I've created custom taxonomy called: Offering which consist of Artist, Musician, Wisdom Keeper, Performer, Healer.
3. I've created a custom template to display each taxonomy. Eg: musician-list.php, artist-list.php. These can be turned on for the appropriate pages. (I decided not to use the taxonomy archive template. It's easier for my client to work with the menu when they can see a page.)
Now here is my quandary: Some of the participants can have more than one offering. Each offering has a different page layout. Is there a way to show a different page layout on the single CPT depending on which taxonomy was clicked?
For instance when I'm looking at the healer list and click from that list, I get the single CPT healer layout and if I'm looking at the artist list and see the same participant, clicking from the artists list gives me the single artist layout.
Can this be done?