WordPress 2.5 – will the fun never end: Gravatar Support

image 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:

Gravatar 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. :)

If you found this content helpful, then please help by linking to me. You can also help me by sharing the content using any of these nifty buttons above. Thank you.



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.

3 Responses to “WordPress 2.5 – will the fun never end: Gravatar Support”

  1. Here’s a comment on this post to show that the Gravatar is working. Look at the image next to my name above. :)

    Reply
  2. This is just to test my just created Gravatar..

    Reply
  3. Test successful :)

    Reply




Leave a Reply