WordPress.org

Forums

Need help with advanced query of posts, postmeta, taxonomies (1 post)

  1. ikjosh
    Member
    Posted 1 year ago #

    Hi everyone,

    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?

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic