[wp-hackers] WP User Query with two meta keys

Gavin Pearce Gavin.Pearce at 3seven9.com
Tue May 1 16:48:36 UTC 2012

It is possible indeed. Give it a go. 

Take a look at meta_query in WP_Query docs in the Codex if you require
help with the correct formatting. Or post here.


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Robert
Sent: 01 May 2012 17:28
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] WP User Query with two meta keys

Is it possible to select a user matching "two" meta keys and values, in
WP User Query?

E.g.  select users where:
plant = "oak"
town = "town"

Much like WP_Query's meta_query.

If not - how would you go about this?

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list