How to: Add any authors gravatar to their post

This is an easy one, just add one line to your single.php file where you would like the Gravatar to show up.
<?php echo get_avatar( get_the_author_id(), $size = ’96’, $default = ‘<path_to_url>’ ); ?>

This is an easy one, just add one line to your single.php file where you would like the Gravatar to show up.

<?php echo get_avatar( get_the_author_id(), $size = '96', $default = '<path_to_url>' ); ?>

Comments are closed.