WordPress 2.5 - will the fun never end: Gravatar Support
For some reason (call it my naivety) I don’t like to install plugins to my WordPress installation unless absolutely necessary.
I also always wanted Gravatar integration in this blog, but didn’t want to install the plugin. So, imagine my joy when i discovered that there is built-in support for Gravatars in WP 2.5.
Well. it didn’t take long and I was able to integrate that into my site.
Before I tell you how to do that, the other good news is that since the support is integrated in WordPress, I can also control the settings from the Administration Panel. The settings are under the Discussion tab in Settings:
Here’s how to integrate this into your blog theme. WordPress now provides a function for embedding a Gravatar in your blog theme template files. Although the documentation is available on codex here, here is the call I used in my comments template to get it working:
<?php echo get_avatar($comment, $size = ‘32′); ?>
There is one more options that you can add to that command which allows you to specify a default gravatar icon in case a user doesn’t have a gravatar icon.
Well, like I said, it gets better and better. This does look like the best release ever. To see this change in action, leave a comment.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

April 1st, 2008 at 11:38 pm
Here’s a comment on this post to show that the Gravatar is working. Look at the image next to my name above.
April 8th, 2008 at 4:12 pm
This is just to test my just created Gravatar..
April 8th, 2008 at 4:46 pm
Test successful