• miggle

    (@miggle)


    I have this call:
    get_users(‘meta_key=main_feature&value=yes’);

    but the query is also returning users with the meta key ‘featured’ set to yes as well. I have a plugin that allows me to check all the user meta and have confirmed that the meta key for users that shouldn’t be showing up is empty.

    Is there something I’m doing wrong here?

Viewing 1 replies (of 1 total)
  • Chris Mok

    (@chris_dev)

    Hi miggle,

    I think one of the parameter’s name is wrong.
    Could you try this?
    get_users(‘meta_key=main_feature&meta_value=yes’);

Viewing 1 replies (of 1 total)
  • The topic ‘get_users(); returning wrong users’ is closed to new replies.