How to automatically add Gravatars for the post author

Simply paste the following code where you’d like the author Gravatar to be displayed. Please note that this code must be used within the loop.

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

Thanks to Emoticode for the tip!

Web Design

authorAutomaticallyGravatarspost

Leave a Reply

Your email address will not be published. Required fields are marked *