I'm creating a plugin. where I need to filter two custom taxonomies (Doctors and Procedures) with a custom post type (Gallery). The first page will list all doctors from doctor taxonomy and when you click on specific doctor, it will take you to another page with the list of specific procedures for that doctor.
Example: user clicks on 'doctor 1' then in the procedures page will show procedures related only to that doctor. then when you click on that procedure will show all the images.
I've created the rest of the functionality that only thing I'm having issue with is the filtering for each doctor's procedures. Here is an visual example https://beverlyhillsphysicians.com/before-and-after-gallery-by-doctor/. some images might contain nudity.