Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    <?php echo do_shortcode(“[avatar]”); ?> will give you avatar of currently logged in user. We’re developing a pro version where you’ll be able to display users avatar in the widget and many more useful options.

    Thanks

    I’d also like to show the avatar on a page of the person logged in, rather than the actual author. Will the php code above do that? If so, how specifically do I implement that into a page?

    Thanks!

    Thread Starter X-Raym

    (@x-raym)

    Hi there !

    Here is the php code I use :

    <?php global $userdata; get_currentuserinfo(); echo get_avatar( $userdata->ID, 256); ?>

    It works very nicely 🙂

    256 is the size.

    ps : thank to Flipper code for having lead me to a nice solution !

    Excellent! Thanks so much for the super quick reply!!

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode for Current Logged In User Avatar’ is closed to new replies.