How to: Add any authors gravatar to their post

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>' );…

Display custom url if comment authors url is blank

Display custom url if comment authors url is blank

Here is a nifty trick for your comments.php template. If someone comes to your site and leaves a comment but doesn’t leave a url back to there site, the default link that is shown…

Twitter avatars inside your WordPress comments

Twitter avatars inside your WordPress comments

Ricardo Sousa, who writes for Smashing Magazine created a great plugin called Twittar. This plugin will use someones Twitter Gravatar if their email address is not connected with a Gravatar. For more info check out the…