Display Author Gravatar in Wordpress (no plugin)


/ Published in: PHP
Save to your folder(s)

Use in the WP loop.

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


Copy this code and paste it in your HTML
  1. <?php
  2. $author = get_the_author_email();
  3. echo get_avatar( $author, 80 );
  4. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.