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.

twitter plugin for wordpress

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>

wordpress twitterThis 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.

Possibly Interesting Posts

Reasons for failure in Affilaite Marketing : Affiliate Marketing is one of the best method to make money online, but to be successful, you need t..[](0)
IPL Trending on Twitter : Today IPL 2010 season 3 has begun with a glittering start. I was checking the twitter trends and gr..[](0)

{ 5 trackbacks }

Related Tweets – Twitter plugin for Wordpress
March 28, 2009 at 9:08 am
Are you using Twitter - Get into microblogging
April 8, 2009 at 4:39 am
Wordpress Hacks that I use
May 28, 2009 at 8:04 am
WordPress and Twitter API, Plugin « Sadhas Blog
January 28, 2010 at 8:53 am
AJAX Twitter plug-in for WordPress « Hemakumar'S Blog
March 8, 2010 at 9:16 am

{ 24 comments… read them below or add one }

Colin March 24, 2009 at 5:46 am

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.

Reply

Colin March 24, 2009 at 6:04 am

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

testing now…

Reply

admin March 24, 2009 at 10:45 am

Colins – You can find more info on the plugin page http://www.kisaso.com/ajax-wordpress-twitter-plugin/

Reply

Costa Rica 101 March 26, 2009 at 7:13 am

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

Reply

admin March 26, 2009 at 1:13 pm

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

Reply

Chris April 4, 2009 at 12:01 pm

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!

Reply

Kishore April 4, 2009 at 3:10 pm

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

Reply

Chris April 4, 2009 at 3:18 pm

mind giving us a tutorial on this please?

Reply

Costa Rica Weather April 4, 2009 at 7:17 pm

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.

Reply

Chris April 4, 2009 at 10:24 pm

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

Reply

Kishore April 7, 2009 at 12:56 am

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

Reply

Chris April 7, 2009 at 12:42 pm

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?

Reply

Kishore April 7, 2009 at 12:57 pm

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

Reply

Lucas April 6, 2009 at 1:19 pm

The information generated by this code is totally crowed:

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

thanks

Reply

Michael April 14, 2009 at 4:55 pm

Hey,

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

Reply

Kishore April 17, 2009 at 2:06 am

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

Reply

izu mou May 12, 2009 at 9:32 am

Thanks,Am checking it out…

Reply

Mayur Somani May 26, 2009 at 11:50 pm

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

Thanks

Reply

Kishore May 28, 2009 at 2:35 am

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

Reply

Joanne September 15, 2009 at 11:37 pm

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.

Reply

Kishore September 16, 2009 at 2:16 am

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

Reply

Nick September 30, 2009 at 3:19 am

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…

Reply

Tweetarthritis October 10, 2009 at 1:37 am

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.

Reply

Casemon December 14, 2009 at 8:56 am

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?

Reply

Leave a Comment

Previous post:

Next post: