Categories: PluginsTips & Tricks

Add the twittar plugin for WordPress w/ comment threading

I talked about the Twittar plugin in a previous post. But learned that the read me text file was only useful for installing the necessary php code into WordPress themes that don’t have comment threading enabled.

Since most new themes past version 2.7, pull the comments section from functions.php file, that is where you have to edit the avatars in order to show the twittar settings.

First open you functions.php, and look for a line of code that says:

function custom_comment()

This is where your new comments are pulled from when you have the threaded comments enabled.

Now just find <?php echo get_avatar( $comment, $args['avatar_size'] ); ?> & replace with <?php twittar(70, "", "", "avatar avatar-70 photo", 1, "R"); ?>. Keep in mind that you will need to edit the Twittar setting to fit your site.

Web Master

Hi, I am Miguel, I bought this site in 2009. So I now run or manage the site. Please visit my new website or follow me on twitter @W3i.

View Comments

Recent Posts

Adding a favicon to your site

Looking to add a favicon to you site? Inside your WordPress theme's functions file (functions.php)…

4 hours ago

The launch of WordPress 2.8

Wow, have you heard? WordPress has announced that the newest version, 2.8 which was thought…

8 hours ago

WPLover: On Launching a WordPress theme

I just came across this article over at WPLover. Was very good, especially since I…

20 hours ago

Maintenance release for Hybrid 0.5

Today has released an update to his Hybrid Theme. Version 0.5.1 can be found at…

1 day ago

Using the swekey on your blog

If you've downloaded the Swekey plugin and plan on using it for users to login…

2 days ago

April’s new meetup location for LAWPUG

Anyone in the Los Angeles area? Well the first Sunday of the month is the…

2 days ago