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
- Loading image changed
- Some CSS tweeks
- Added Related Tweets
- 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.


{ 5 trackbacks }
{ 24 comments… read them below or add one }
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.
Ah, nevermind – I found it in the kish-twit file:
?php if (function_exists(‘printKishTwitter’)) printKishTwitter(); ?
testing now…
Colins – You can find more info on the plugin page http://www.kisaso.com/ajax-wordpress-twitter-plugin/
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
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
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!
Yes chris, that can be done, but we will need to do some modifications
mind giving us a tutorial on this please?
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.
How do I modify the display of Related Tweets? For eg, paragraph spacing like yours and adding a line/border like Twitter’s.
Chris you can do it by modifying the style of the div
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?
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
The information generated by this code is totally crowed:
how can I change the css for the items inside the div?
thanks
Hey,
I have the plugin up, and have made twitter posts, but it doesn’t display any of my posts. Help please
Micheal – I see some problem with the twitter API. This needs to be sorted out
Thanks,Am checking it out…
Hi, how can stop the highlighting of search keywords while displaying the tweets. I can edit the functions file, just gimme the hint.
Thanks
Mayur, you can edit the functions.php file. In that you can find the variable $searchterm which and be modified
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.
Joanne, its possible, just need to update the tag function for this
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…
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.
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?