/ Published in: PHP

get_the_author_email outputs the post author’s email and the “80†is the size of the avatar image in pixels & it has to be in the loop!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php echo get_avatar( get_the_author_email(), '80' ); ?>
URL: http://themeshaper.com/how-to-add-gravatars-for-the-post-author-in-wordpress/
Comments
