• Resolved fid

    (@fid)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)

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