• I have two custom taxonomies: Countries and States. Within each State term (e.g. Alabama), I have an ACF taxonomy field where you can select the country (e.g. USA). I’m looking to produce a nested list of terms, grouped first by country and then ordered by state name, like the following:

    Canada
    – Alberta
    – British Columbia
    – etc.

    USA
    – Alabama
    – Alaska
    – etc

    I saw some example of a double order by in the query, but those don’t seem to work with custom taxonomies. Can anyone point me on how to do this the right way? Thanks!

    • This topic was modified 4 years, 9 months ago by Jan Dembowski.
    • This topic was modified 4 years, 9 months ago by s545422.
  • The topic ‘Term list grouped by other terms?’ is closed to new replies.