I need help building a query. I have two custom post types - "Locations" and "Employees". They are tied together, Locations being the parent. I then have a custom taxonomy tied to Employees, labeled "Specialty".
I am trying to build out a profile page for each location. On the profile page, I want to list out the "Specialties" (distinct entries) FIRST, and under each Specialty, list the Employees who belong to that Specialty (some Employees may have multiple Specialties).
How can I do this?