I use the famous User Photo plugin for my Wordpress site. I want to display the current logged in user's avatar outside the loop. How is this possible?
The current code I use to display the author avatar inside the loop is:
<?php userphoto_the_author_thumbnail('', '', array(width => '40', height => '40')); ?>
Google did not give me much to go on. One person referred to this code:
global $authordata;
$authordata=get_userdata(get_query_var( 'author' ));
userphoto_the_author_thumbnail();
But it did not work. What is the solution?