You might be aware with Adding Gravatars of author in post comments but i was in a situation where i need to show post author’s image/gravatars in listing of post on Home page, Category page and other archive pages. To get the post author’s gravatars, look at the below code.
<?php echo get_avatar( get_the_author_email(), ’80′ ); ?>
Now you need to write this code in existing loop from where the list of post are coming. Loop will be similar to below code. You can find it in index.php or loop.php under WordPress theme’s directory. This may change as per your current theme.
<?php while ( have_posts() ) : the_post(); ?>
You are Done.