Add Author’s Gravatars to Posts in WordPress
Advertisements![]()
Adding Gravatar to your blog, makes your blog’s comments look more attractive. That’s why it have been incorporated in the WordPress core.
Now comes the idea of adding your gravatar to your post on WordPress. This can be pretty useful in blogs with multiple authors, so that readers can quickly identify, who wrote this post.
And adding this feature is real easy. Just add this code in your single.php -
<?php echo get_avatar( get_the_author_email(), ’80′ ); ?>
You have to add this, where you want to display the Author’s gravatar. In this code “80″ is the size of the gravatar, you can change it to any value you want.
Pretty simple!! huh
If you enjoyed this post, make sure you subscribe to my RSS feed!
1 Comment


I added your blog to bookmarks. And i’ll read your articles more often!