How To Add Gravatars For The Post Author in WordPress
Gravatar support is a part of the WordPress core, and a newbie can add them in their wordpress theme. Some people are adding them in their post titles to highlight the comment author, within the loop. Didn't you ever wanted to do something like that ? It's so easy. You must have a try on it!!!
PHP Code:
<?php echo get_avatar( get_the_author_email(), '80' ); ?>
it's simple, right? get_the_author_email outputs the post author’s email and the “80″ is the size of the image of avater in pixels (you can change it as you want). How this will be depends on how you are gonna use it; where you want to put it in the theme (it must be in the loop!) and the way you style it.
Here is how it looks like
I believe the code will work for you. Good luck using it in your own theme!