Title: Get user meta outside wordpress
Last modified: August 19, 2016

---

# Get user meta outside wordpress

 *  Resolved [fid](https://wordpress.org/support/users/fid/)
 * (@fid)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/get-user-meta-outside-wordpress/)
 * Okay this is what I am trying to do. I have a page outside wordpress folder and
   I want to get some values from the user table specific to the users.
 * Here is what I did. And it works great well not quite.
 *     ```
       <html>
       <body>
       <?php
       require( 'path to /wp-load.php' ); //path removed
       echo 'new content outside WordPress';
       ?>
   
       Website: <?php echo $curauth->user_url; ?>  // just an example data.. doesnt work!!
   
       </body>
       </html>
       ```
   
 * Okay now what I want to do here is, instead of saying $curauth->user_url; I want
   to specify the ID of the user whose website I want to display. Obviously $curauth
   works only for the user’s profile page. What I am doing is making a custom profile
   page with other CSS / HTML design and all I need to do is call a specific user
   ID. How do I do that? Also I will have many other get functions on that page 
   for different authors.
 * Will it be something like
    <?php echo 10->user_url; ?> //where 10 is the user
   ID I need to pull data from …
 * Any help is appreciated! Thanks.

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

 *  Thread Starter [fid](https://wordpress.org/support/users/fid/)
 * (@fid)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/get-user-meta-outside-wordpress/#post-1277833)
 * I got it.
 * [http://codex.wordpress.org/Function_Reference/get_usermeta](http://codex.wordpress.org/Function_Reference/get_usermeta)
 *  Thread Starter [fid](https://wordpress.org/support/users/fid/)
 * (@fid)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/get-user-meta-outside-wordpress/#post-1277834)
 * I got it.
 * [http://codex.wordpress.org/Function_Reference/get_usermeta](http://codex.wordpress.org/Function_Reference/get_usermeta)

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

The topic ‘Get user meta outside wordpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [fid](https://wordpress.org/support/users/fid/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/get-user-meta-outside-wordpress/#post-1277834)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
