• I have created an author.php template that lists all the authors post at this URL:

    domain.com/author/username

    The posts are called using ‘the loop’. Above the loop I am calling some userdata as follows:

    <h2>About: <?php echo $curauth->nickname; ?></h2>
        <dl class="custom_author">
            <dt>Website:</dt>
            <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
            <dt>Profile:</dt>
            <dd><?php echo $curauth->user_description; ?></dd>
        </dl>

    I’d like to add the calls from the User Profile plugin, for example:

    <?php userphoto($authordata) ?>

    If i put this in the header above the loop, it doesn’t work. If i put it in the loop, it works fine.

    What do i need to do to put the user photo in this template header?

  • The topic ‘Calling User Photo outside the loop’ is closed to new replies.