Title: Get_user_by
Last modified: August 21, 2016

---

# Get_user_by

 *  Resolved [Theopt](https://wordpress.org/support/users/theopt/)
 * (@theopt)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_user_by/)
 * This method is only returning to php the current user email 😐 im using like 
   this:
 *  $autorguide = get_user_by( ‘login’, $name );
    $autoremail = $autorguide->user_email;
   echo $autoremail;
 * being name a list of users. but its only returning my email.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [railbear007](https://wordpress.org/support/users/railbear007/)
 * (@railbear007)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_user_by/#post-4123238)
 * Try making another variable for the other users. I don’t know what else to do…
   Sorry
 *  Thread Starter [Theopt](https://wordpress.org/support/users/theopt/)
 * (@theopt)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_user_by/#post-4123306)
 * didnt fixed it :\ thanks anyway… I dont understand the issue though.
 *  Thread Starter [Theopt](https://wordpress.org/support/users/theopt/)
 * (@theopt)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_user_by/#post-4123309)
 * workaround:
 * Make a mysql query to table user from wordpress and retrieve the email from there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get_user_by’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Theopt](https://wordpress.org/support/users/theopt/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/get_user_by/#post-4123309)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
