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'];
1: 2: 3:
<h3><?php wp_echoTwitter('twitteruser'); ?></h3> <h2><a href="http://twitter.com/twitteruser">Follow twitteruser on Twitter</a></h2>