• Resolved anthonyabraira

    (@anthonyabraira)


    Discussions settings are set to:

    Avatar Display: Enabled
    Maximum Rating of G
    Set to Gravatar Logo

    Looking at one my posts with a little avatar snippet that seems to just grab the default Gravatar logo:

    wp_get_current_user();
        $size = array(60,60); // this is the size of the avatar
        echo get_avatar( $current_user->user_email, $size, $default, $current_user->display_name );

    Not really sure why this isn’t working.

    https://wordpress.org/plugins/avatar-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Cătălin Dogaru

    (@cdog)

    Hi anthonyabraira,

    Your code should look like this:

    <?
    $current_user = wp_get_current_user();
    
    echo get_avatar( $current_user->ID, 64, '', $current_user->display_name );

    The size of the avatar image should be an integer value. See the get_avatar() function documentation page.

    Let me know if this helps.

    Thread Starter anthonyabraira

    (@anthonyabraira)

    Yep. That did it. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot get custom avatar to show up’ is closed to new replies.