WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ikjosh
    Member
    Posted 11 months ago #

    Hi,

    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

    Thanks!

Reply

You must log in to post.

About this Topic