Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Easy Gravatars


This plugin allows you to automatically add Gravatars for commenters to your
theme, if your theme does not already support them.

According to the website, Gravatars are Globally Recognized
Avatars, or an “avatar image that follows you from weblog to weblog
appearing beside your name when you comment on gravatar enabled sites.”
You register with the Gravatar server, and upload an image which you will
use as your avatar. The gravatar image is keyed to your email address, so
that it is unique to you.

This plugin will display gravatars for the people who comment on your posts.
You do not need to modify any of your template files — just activate the
plugin, and it will add gravatars to your comments template automatically.


Based on a code snippet from Matt Mullenweg:

Props to David Potter for pointing out that Gravatar normalizes email
addresses to lowercase before hashing with MD5:


1.3 2010-01-14

  • Tested compatibility up to WordPress 3.0-a

1.2 2008-03-06

  • When running under WordPress 2.5, use the built-in Gravatar image functions.

1.1 2007-11-16

  • Gravatar images now link to comment author’s URL, if provided.
  • Gravatar code now prepended to text instead of appended.
  • Code reorganized. Functions for filters and hooks are now near the actions
    that actually call them.
  • Added stylesheet for options page and improved layout. Split options into
    ‘General’ and ‘Advanced’.
  • New advanced option for selecting either ‘Comment Author Link’ or ‘Comment
    Text’ API hook.


  • Initial release.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
Bookmark the permalink.

17 Responses to Easy Gravatars

  1. Pingback: Finally Tweaked My Comments on on Dragon Blogger

  2. Pingback: ??? ??????? ?????????? ??????? Wordpress. | Wordpress, ???????, ???? ? ???????.

  3. Pingback: WordPress Plugins used on Quirksmode | quirksmode

Leave a Reply