Return to Snippet

Revision: 46342
at May 17, 2011 19:59 by dubogii

Initial Code
  $gravatar_link = '' . md5($comment_author_email) . '?s=32';
   echo '<img src="' . $gravatar_link . '" />';

The variable "$comment_author_email" would be a string of a valid email address. If the email isn't in the Gravatar database, it will return a default graphic. "$comment_author_email" is the default WordPress variable that populates from a cookie for people who have previously commented (if the theme supports it).

Initial URL

Initial Description

Initial Title
Display a User Gravatar from an Email Address

Initial Tags
email, user

Initial Language