Posted By

selfmadepsyche on 02/17/09


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

FlamesOfDestiny


How To Add Gravatars For The Post Author in WordPress


 / Published in: PHP
 

URL: http://themeshaper.com/how-to-add-gravatars-for-the-post-author-in-wordpress/

gettheauthor_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!

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

Report this snippet  

You need to login to post a comment.