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 …

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

  1. Alex Vazquez

    February 18, 2009

    WOW thanks alot!

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

  2. Eric Barb

    April 18, 2009

    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

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

  3. sobakers

    April 30, 2009

    plug-in gives out a errore ((((

    • Austin

      April 30, 2009

      Can you tell me exactly what the error is?

  4. sürücü kursu

    May 19, 2009

    thank you..