I am trying to setup a search page on my site. I have 2 custom post types - "Offices" and "Employees" (child of Offices), and a custom taxonomy "Specialties" which is tied to "Employees"
On my search page, I need a query and nested loops which does the following:
User can search by Specialty (taxonomy) - The results need to find all the Employees who have that specialty, sort them by location (Office), then display information about the Employee (name, phone number) as well as information about the Office (city, state, name, permalink)
How do I tie all three of these together in one query? I'm struggling to figure it out