Show current taxonomy inside dropdown on archive template
-
Hey there. So I have a template for my post type archive (e.g. Candidates) with the filter options, then I also have an archive template for custom taxonomies (e.g. Endorsements).
If someone is viewing an individual candidate they will see a list of endorsements (the custom taxonomies) that candidate has been associated with (Labor, Business, Environment, etc.).
If you click one of those taxonomy links (Labor, Business, etc.), then the user goes to my archive template for custom taxonomies. The filter options are on this page in dropdown form.
Is there a way to have my “Endorsements” filter dropdown show the current taxonomy when the person lands on that page? So if I were to click “Labor” then I’m on the Labor Archive page could my Endorsements filter dropdown show Labor?
Cheers,
- You must be logged in to reply to this topic.