Timeline for WP_User_Query with 2 sets of conditions 'AND'
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2020 at 7:51 | answer | added | user198959 | timeline score: 0 | |
Sep 24, 2018 at 22:40 | vote | accept | proteuscanvas | ||
Sep 24, 2018 at 7:03 | comment | added | Tung Du | @KrzysiekDróżdż Ah, sorry about that. A mistake. Thank you | |
Sep 24, 2018 at 6:58 | comment | added | Krzysiek Dróżdż |
@TungDu of course you can use meta_query with WP_User_Query - just take a look at Codex ;)
|
|
Sep 24, 2018 at 6:57 | answer | added | Krzysiek Dróżdż | timeline score: 0 | |
Sep 24, 2018 at 6:57 | comment | added | proteuscanvas | What should I be using to query the User Meta? | |
Sep 24, 2018 at 6:54 | comment | added | Tung Du | the query you use won't work because meta_query only accept post meta | |
Sep 24, 2018 at 6:49 | comment | added | proteuscanvas | The only thing that I'm not sure about is the 'meta_key' vs 'key'. I am using ACF for 'organisation' and UserMeta for '$campaign_type'. | |
Sep 24, 2018 at 6:47 | comment | added | Krzysiek Dróżdż | It looks OK, so query itself is not the problem. Are you sure that these conditions are correct? | |
Sep 24, 2018 at 6:44 | history | asked | proteuscanvas | CC BY-SA 4.0 |