The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Gravatar doesn't display (4 posts)

  1. richards1052
    Posted 9 years ago #

    I'm using the Gravatar2 plugin. I have a gravatar registered at Gravatar.com. Other gravatars are displaying properly at my blog. But mine won't display. Here's an example of what I see. Would anyone have any ideas why this might be happening?

  2. beardedgit
    Posted 8 years ago #

    Similar problem here:

    When I look at my WP2.2.2 blog with Firefox, I can see my gravatar and those of all other commenters who have one. No problems there.

    When I look via IE, I can see the gravatars of other commenters, but mine behaves oddly: if I submit a comment while logged out, my gravatar is recorded against that comment just as it should. If I submit a comment while logged in, no gravatar is recorded against that comment.

    Weird, eh?

    This happens whichever Gravatar-enabling plugin I use, so I reckon the problem is login-related, not plugin-related.

    For an example, see http://beardedgit.com/?p=218, be warned that the "F"-word has been used in some of the comments there.

    All suggestions as to how to fix this would be appreciated. Thanks for looking.

  3. beardedgit
    Posted 8 years ago #


    I've upgraded WP from 2.2.2 to 2.3.1 and also upgraded from IE6 to IE7, and all gravatars are now visible. They still display different to how they do in Firefox, but I can live with it. Cheers for looking.

  4. dkaye315
    Posted 8 years ago #

    there's no need to install a plugin to do this ... instead - follow Matt's advice, and hardcode it to the theme.

    insert the following code:

    "Just put it in your comments loop, I put it right before the comment_text() call."

    if ( !empty( $comment->comment_author_email ) ) {
    	$md5 = md5( $comment->comment_author_email );
    	$default = urlencode( 'http://use.perl.org/images/pix.gif' );
    	echo "<img style='float: right; margin-left: 10px;' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&amp;size=60&amp;default=$default' alt='' />";

Topic Closed

This topic has been closed to new replies.

About this Topic