Question : Last 3 tweets in WordPress

I am current using the wp_echoTwitter code to show the last tweet on my blog. I am looking to show the last 3 tweets.

I have this in my functions.php file:
1:
2:
3:
4:
5:
6:
7:
8:
function wp_echoTwitter($username){

     include_once(ABSPATH.WPINC.'/rss.php');

     $tweet = fetch_rss("http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1");

     echo $tweet->items[0]['atom_content'];


And I have this added to my sidebar
1:
2:
3:
		<h3><?php wp_echoTwitter('twitteruser'); ?></h3>
		<h2><a href="http://twitter.com/twitteruser">Follow twitteruser on Twitter</a></h2>


Any ideas?

Thanks

Answer : Last 3 tweets in WordPress

You are still accessing the first one. You need to loop them through. Check this update of the function:

http://jhnk.pastebin.com/5A4aXYTW
Random Solutions  
 
programming4us programming4us