Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter WordDug

    (@worddug)

    I found the below on another thread which resolved the problem after trying a lot of things. So if the avatar for the “current user” is not showing correctly then try this. I added this into functions.php as part of a bigger function.

    <?php
    global $current_user;
    get_currentuserinfo();
    echo get_wp_user_avatar($current_user->ID, 96);
    ?>

    Your php seems to specific a user ID – is that correct? Or is that defining the size?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avatar Shortcode’ is closed to new replies.