DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Do you enjoy Twitter? I do. So what about displaying Twitter avatars in your comments, instead of gravatars? In this recipe, you’ll learn how to easily integrates Twitter avatars on your comments.

So you want to integrate Twitter avatars to your comments? No problem!

The first thing to do is to get the functions file here or here.

Once you have it, unzip the archive and open the twittar.php file. Select all its content and paste it to the functions.php file from your theme.

The last thing to do is to open your comments.php file and find the comments loops. Then, paste the following line inside it:

<?php twittar('45', 'default.png', '#e9e9e9', 'twitavatars', 1, 'G'); ?>

Thanks to Smashing Magazine and Ricardo Sousa for this excellent piece of code!

One Comment

  1. The first link (pointing to the zip file) is broken.

Leave a Comment

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