[wp-hackers] Advanced taxonomy queries

Enrique Chavez noone at tmeister.net
Wed May 23 20:19:19 UTC 2012


Hi all,

I have a custom post with 3 taxonomies ( Country, State, City ) I can get
the terms for a single taxonomy using "get_terms( $taxonomy )".

But let's say  that i want to get the terms in the taxonomy "state", but
that the taxonomy 'country' is equal to 'X'

And later search for the cities that the state is equal to Y and country
equal to X.

i have been reading the docs but i can't find something that help me.

Any suggestions?

Best Regards!

--
Enrique Chávez <http://tmeister.net>
Freebies & Updates <http://facebook.com/ecdevelopment>
@tmeister <http://twitter.com/tmeister>


More information about the wp-hackers mailing list