Forums

[resolved] Use tag to show author photo on page (4 posts)

  1. Raid33
    Member
    Posted 1 year ago #

    I want to use userphoto_the_author_photo() to display the author's photo on an Author Page "author.php"

    I read in another post that as long as $authordata is globally set, you can call userphoto_the_author_photo() anywhere. How do I set that?

    http://wordpress.org/extend/plugins/user-photo/

  2. Kafkaesqui
    Moderator
    Posted 1 year ago #

    Hmm. Try this little tricksy bit:

    <?php the_post(); userphoto_the_author_photo(); rewind_posts(); ?>

    That should gear up the first or latest post (making $authordata available), then afterwards reset everything in the posts object back to square one (helpful if you're displaying the author's posts later on the page).

  3. Raid33
    Member
    Posted 1 year ago #

    Wow, brilliant! It worked perfectly. Thanks Kafkaesqui - you made my night!

  4. wimax
    Member
    Posted 1 year ago #

    thanksssssssssssssssssssss!!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags