•  

Add the twittar plugin for WordPress w/ comment threading

By Austin On February 18, 2009 Under Plugins, Tips & Tricks

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.

6 Comments Add yours

  1. Alex Vazquez
    February 18, 2009
    1:48 pm

    WOW thanks alot!

    Alex Vazquez´s last blog post..Friday, Feb.27 @ Al Borde Sessions

  2. Eric Barb
    April 18, 2009
    1:35 pm

    Wow is right. I was totally confused about how I was going to get this working on my site not know much about php. By following these steps I was able to set it up in minutes. You just earned a cult member ;-)

    • Austin
      April 18, 2009
      4:59 pm

      Thanks for the great response. I am glad you were able to get it done easily.

  3. sobakers
    April 30, 2009
    3:00 am

    plug-in gives out a errore ((((

    • Austin
      April 30, 2009
      10:21 am

      Can you tell me exactly what the error is?

  4. sürücü kursu
    May 19, 2009
    12:00 pm

    thank you..