Twitter Plugin for WordPress Updated

by Kishore on March 23, 2009

I just have updated the new version of Kish Twitter which can be downloaded now. I have made few changes and added the related tweet feature and the Twitter search feature.

Changes done

  1. Loading image changed
  2. Some CSS tweeks
  3. Added Related Tweets
  4. Added Twitter Search

Related Tweets

To add this to your blog post page, you need to enable it in the Kish Twitter settings and add the following function.

<div style="padding:2px; font-size:11px;">
     <?php $searchterm = kish_twitter_get_tags(); ?>
     <?php kish_twitter_related($searchterm); ?>
</div>

This function should be placed below the post loop, above the comment form. I am using the tags for searching twitter, so it would be good if you add the right tags for your post to get the best related tweets. Rel=nofollow tag is added to all the URL’s to avoid spams. You get a thumbnail image of the user and the status update. You can reply to the tweets or even re-tweet it from your blog.

Search Twitter

You can now add twitter search to your blog. You can do this by creating a page with a title like Tweeter Search and in the post section just add

[kish_tweet_search]

You will get a search box which can be used to search twitter.

If you like this plugin, please write a review on this plugin and tell about this to your online friends. If you find any bugs, please let me know. I have tested this on WordPress 2.7.1 and I use PHP 5.2. You need the curl library enabled for this plugin to work.

  1. Twitter Search and Related Tweets : I was playing with the Twitter...
  2. WordPress plugin for Twitter : I have written a WordPress plugin...
  3. Twitter Plugin for Windows Live Writer : If you are using Windows Live...
  4. AJAX Twitter plugin for WordPress : I have been working on a...
  5. AJAX Twitter plugin for WordPress : I have been working on a...
  • Colin

    What is the code to display the widget? The instructions on http://wordpress.org/extend/plugins/kish-twitter/installation/ are incomplete.

    Looks good, eager to try this plugin!
    Thanks.

  • Colin

    Ah, nevermind – I found it in the kish-twit file:
    ?php if (function_exists(‘printKishTwitter’)) printKishTwitter(); ?

    testing now…

  • http://www.costarica101.com Costa Rica 101

    I can’t seem to get it to work. I specifically want it to show related tweets only – to add fresh content to posts.

    Would you mind elaborating on how the plugin fetches the related tweets? Is it done by doing a search for tag keywords on Twitter Search or through the API?

    I’ve placed the code same place as you have (we’re coincidentally running almost the same theme), typed in correct username and password in the plugin and clicked:

    - Twitter Enabled
    - Enable Rel=nofollow
    - Enable Related Tweets

    Posted here instead of asking via e-mail, since others might benefit from reading the answer(s).

    BTW, regarding the broken links: Running Xenu to do a complete report on links on your site. Will mail you the result later today!

    Lasse

    • admin

      Lasse – The twitter search results will depend on the tags you use for the post. I checked your blog. Try adding keywords as tags. I will be soon updating the plugin to generate keywords from the post, but you can check it by some keywords as tags. I should work

  • Pingback: Related Tweets – Twitter plugin for Wordpress

  • Chris

    For Related Tweets function, it seems like it searches all of your post tags.
    For eg, if my blog post has tags: ipod, playstation, xbox, it will search related tweets that contain “ipod AND playstation AND xbox”, how do I tweak to make it search and display tweets that contain “ipod OR playstation OR xbox” ?

    Thanks!

    • http://www.kisaso.com Kishore

      Yes chris, that can be done, but we will need to do some modifications

      • Chris

        mind giving us a tutorial on this please?

  • http:http://www.costarica101.com/weather Costa Rica Weather

    Kishore:

    I tried adding tags to a few posts, no chance. Still no “Related tweets”. Is there a minimum amount of tags per post, before the script will communicate with Twitter? If so, the addon Chris is suggestion just might do the trick.

  • Chris

    How do I modify the display of Related Tweets? For eg, paragraph spacing like yours and adding a line/border like Twitter’s.

    • http://www.kisaso.com Kishore

      Chris you can do it by modifying the style of the div

      • Chris

        Sorry to bug you, Kishore. I tried modifying the div style, I even added a new div class to my css, but that didn’t work. Could you kindly reveal the correct code/mods that I should use to make a paragraph spacing between tweets?

        • http://www.kisaso.com Kishore

          Chris, if you set the style, it should work well. please let me know your site URL so that I can a look and give your some custom code

  • http://tech.foxtergroup.com Lucas

    The information generated by this code is totally crowed:

    how can I change the css for the items inside the div?

    thanks

  • Pingback: Are you using Twitter - Get into microblogging

  • http://www.stockmarketmaniac.com Michael

    Hey,

    I have the plugin up, and have made twitter posts, but it doesn’t display any of my posts. Help please

    • http://www.kisaso.com Kishore

      Micheal – I see some problem with the twitter API. This needs to be sorted out

  • http://izumou.blogspot.com izu mou

    Thanks,Am checking it out…

  • Mayur Somani

    Hi, how can stop the highlighting of search keywords while displaying the tweets. I can edit the functions file, just gimme the hint.

    Thanks

    • http://kishoreasokan.com Kishore

      Mayur, you can edit the functions.php file. In that you can find the variable $searchterm which and be modified

  • Pingback: Wordpress Hacks that I use

  • http://www.flowerarrangementideas.org/ Joanne

    Hi Kish,The related twitter search function works perfectly when the post has only 1 tag but no twit will be fetch when there are more than 1 tag.I guess it is caused by the way the search terms is enter into the twitter search engine.What is the modification required to turn the search from: tag1 AND tag2 AND tag3 to tag1 OR tag2 OR tag3?Thanks in advance.

    • http://www.kisaso.com Kishore

      Joanne, its possible, just need to update the tag function for this

  • http://filipinovoices.com Nick

    Would love if you could provide shortcode for search and related tweets, because some posts just doesn’t need related tweets or search..I am trying to mimic the HuffPost style of search results.. for example..http://www.huffingtonpost.com/2009/09/29/samoa-earthquake-triggers_n_303304.htmland also, the shortcode made available for the search doesn’t seem to work…

  • http://www.arthritistreatmentlab.com Tweetarthritis

    Twitter is the newest craze today. i tweet at least 5 times a day on my friends just to keep them informed about my whereabouts. I still keep my personal blog though.

  • http://www.casemon.com Casemon

    This looks like a nice plugin. Question: does it auto-update the twitter feed without page reload (i.e. using ajax)?Scenario:User comes to page, sees twitter widget. Starts reading page. I tweet something. Without refreshing or reloading, the reader sees the updated tweet.Is that possible with this plugin?

  • Pingback: WordPress and Twitter API, Plugin « Sadhas Blog

  • Pingback: AJAX Twitter plug-in for WordPress « Hemakumar'S Blog

  • Pingback: AJAX Twitter plug-in for WordPress « Hemakumars's Blog

  • http://wrestling123.com wrestling news

    great plugin thank you

  • http://www.blowupwaterslides.thailandblogger.com LEE

    Now I use plugins wp to twitter for update my blog to twitter account automatically , it’s work for me. :-)