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?
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?
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).
Wow, brilliant! It worked perfectly. Thanks Kafkaesqui - you made my night!
thanksssssssssssssssssssss!!!!!
This topic has been closed to new replies.