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

Gavin Pearce Gavin.Pearce at 3seven9.com
Tue May 1 16:59:14 UTC 2012


Actually ... I'm going to defer on this. I thought it was possible, but
looking at the code + running a few tests it may not be after all.

Can anyone else provide Rob with the answer he's after?

Gavin.

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

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.

Gavin

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Robert
Lusby
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"
AND
town = "town"

Much like WP_Query's meta_query.

If not - how would you go about this?

Thanks,
Rob
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list