Adding your last tweets to your blog

There are many wordpress plugins for adding your latest tweets to your site or blog but why install a plugin when you can add your latest tweets to your blog with a few lines of script. Please note that this implementation has been souped up from the Twitter API.

Step 1

You may add the following to then of your theme footer.php , just before the closing tag of the </body> tag.

<ul id="twitter_update_list"><li></li></ul>

You may change the number of count to any number you want to show count number of tweets.

Step 2

Add the following script where you want to place the twitter update :

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/bloginstall.json?callback=twitterCallback2&amp;count=1"></script>
No TweetBacks yet. (Be the first to Tweet this post)
Tweet This Tweet This Post!

Post a Comment


Aweber
AnHosting
Free wordpress blog installation service
Dreamhost


  • Links

Custom Content