Title: PHP List Users Page w/ Extra Fields plugin
Last modified: August 19, 2016

---

# PHP List Users Page w/ Extra Fields plugin

 *  [jamesbrosher](https://wordpress.org/support/users/jamesbrosher/)
 * (@jamesbrosher)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/php-list-users-page-w-extra-fields-plugin/)
 * I’m having a issue getting a php function to pull user info entered using the
   Extra Fields plugin.
 * Here’s the code:
 *     ```
       <?php
       $szSort = "user_login";
       $aUsersID = $wpdb->get_col( $wpdb->prepare("SELECT $wpdb->users.ID FROM $wpdb->users ORDER BY $szSort"));
       foreach ( $aUsersID as $iUserID ) :
       $user = get_userdata( $iUserID );
       echo("<tr><td>" . $user->last_name . "</td><td>" . $user->first_name . "</td><td>" . $user->wpum_phonenumber . "</td><td>" . $user->wpum_city .  "</td><td>" . $user->wpum_state  .  "</tr>");
       endforeach; // end the users loop.
       ?>
       ```
   
 * I’m using this to create a membership list on one of the pages, but I can’t get
   it to pull anything starting with “wpum_”. I have a very basic working knowledge
   of php so I imagine the issue is right in front of me, but I need a fresh set
   of eyes to take a look.

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/php-list-users-page-w-extra-fields-plugin/#post-1433273)
 * Why don’t you `print_r($user);` to see what is actually there?

Viewing 1 replies (of 1 total)

The topic ‘PHP List Users Page w/ Extra Fields plugin’ is closed to new replies.

## Tags

 * [advanced](https://wordpress.org/support/topic-tag/advanced/)
 * [extra fields](https://wordpress.org/support/topic-tag/extra-fields/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [users](https://wordpress.org/support/topic-tag/users/)
 * [wpum](https://wordpress.org/support/topic-tag/wpum/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/php-list-users-page-w-extra-fields-plugin/#post-1433273)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
