Posted by & filed under WordPress.

Adding this snippet to your WordPress theme within the loop will display the current authors avatar.

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

Leave a Reply

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