Nested loops for custom post types and taxonomies -- Help! (1 post)

  1. ikjosh
    Posted 2 years ago #


    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


Topic Closed

This topic has been closed to new replies.

About this Topic