Posted By

jacksaidwhat on 07/10/11


Tagged

wordpress Pic author Gravatar


Versions (?)

Display Author Gravatar in Wordpress (no plugin)


 / Published in: PHP
 

URL: http://wpengineer.com/505/identify-authors-gravatars/

Use in the WP loop.

User's registered email account on WP must also be assigned to Gravatar.

  1. <?php
  2. $author = get_the_author_email();
  3. echo get_avatar( $author, 80 );
  4. ?>

Report this snippet  

You need to login to post a comment.