Show current taxonomy inside dropdown on archive template

[ad_1]

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,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer