September 8th, 2010 by

There are two ways of how to do it. The first one is adding real gravatar based on the author’s email. This will display gravatar with size 80 pixels.

<?php echo get_avatar( get_the_author_email(), '80' ); ?>

The second is adding our custom image based on the original author’s ID:

<img src="<?php the_author_ID(); ?>.jpg" />

Leave a Reply