I have two taxonomies set up, Make and Model, and I need to associate each Model term with a specific Make term. I have a custom taxonomy field set up for Model, so you can pick which ever Make is associated, but now I’m having trouble displaying these on the front end. I need to display a select list filled with terms that match a specific make.
For example, I could have these Makes:
Honda
Ford
Toyota
And these models:
Civic
Accord
Taurus
Escort
Prius
Corrola
The models are then linked to each make, like this:
Civic [Honda]
Accord [Honda]
Taurus [Ford]
Escort [Ford]
Prius [Toyota]
Corrola [Toyota]
Finally, on the front end, I’d want to display these something like:
Honda
– Civic
– Accord
Ford
– Taurus
– Escort
Toyota
– Prius
– Corrola
I could just do a foreach loop for each make, then a foreach loop inside that that checks to see if the associated make matches the currently listing make, but that seems database heavy. I’d really like a way to just query for terms by their custom field value.