How to display latest Tweet in your sidebar
Description:
Display latest tweet into your blog’s sidebar
The Code:
- Open your sidebar.php
- Search for a white line
- Append the following code
<?php
$account = youraccountname; // Your Twitter account name
$show = 5; // Number of Updates to show
$follow = $options['follow']; // # of Updates to show
// Output
echo $before_widget ;
// start
echo '<div id="twitter">';
echo '<ul id="twitter_update_list"><li></li></ul>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>';
echo '<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/'.$account.'.json?callback=twitterCallback2&count='.$show.'"></script>';
echo '<a href="http://www.twitter.com/'.$account.'/" title="'.$follow.'">'.$follow.'</a></p></div>';
?>



Great thanks, i found very usefull for the above code.
thank you
Thank you for the comment