Title: get_users(); returning wrong users
Last modified: August 31, 2016

---

# get_users(); returning wrong users

 *  [miggle](https://wordpress.org/support/users/miggle/)
 * (@miggle)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get_users-returning-wrong-users/)
 * 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](https://wordpress.org/support/users/chris_dev/)
 * (@chris_dev)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get_users-returning-wrong-users/#post-7030326)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Chris Mok](https://wordpress.org/support/users/chris_dev/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/get_users-returning-wrong-users/#post-7030326)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
