Title: robhern135's Replies | WordPress.org

---

# robhern135

  [  ](https://wordpress.org/support/users/robhern135/)

 *   [Profile](https://wordpress.org/support/users/robhern135/)
 *   [Topics Started](https://wordpress.org/support/users/robhern135/topics/)
 *   [Replies Created](https://wordpress.org/support/users/robhern135/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/robhern135/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/robhern135/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/robhern135/engagements/)
 *   [Favorites](https://wordpress.org/support/users/robhern135/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP] File Upload on User Page show on Front End](https://wordpress.org/support/topic/file-upload-on-user-page-show-on-front-end/)
 *  Thread Starter [robhern135](https://wordpress.org/support/users/robhern135/)
 * (@robhern135)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/file-upload-on-user-page-show-on-front-end/#post-15438559)
 * Hi,
 * I’m looking to be able to grab for instance custom fields and the country field
   etc like below
 * <?php $blogusers = get_users( array( ‘role__in’ => array( ‘author’, ‘subscriber’)));?
   >
 * <?php foreach ($blogusers as $user):
 * $user->ID
    $user->first_name
 * I would expect something like
 * $user-uwp_country
    $user->customfield_key
 * as the shortcode is not suitable here.
 * I’d prefer to now have to use $wpdb->getresults if possible.
 * Thank you!

Viewing 1 replies (of 1 total)