Term list grouped by other terms?
-
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
– etcI 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!
- The topic ‘Term list grouped by other terms?’ is closed to new replies.