This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// How to display your latest tweets in your WordPress site without a plugin | |
// Source: http://dinolatoga.com/2010/07/31/how-to-display-your-latest-tweets-in-your-wordpress-blog-without-a-plugin/ | |
include_once(ABSPATH . WPINC . '/feed.php'); | |
//configuration | |
$username = "EricRasch"; // Just insert the username of the Twitter account you want to display | |
$feed = "http://twitter.com/statuses/user_timeline/$username.rss"; // Changed the code from dinolatoga.com to actually use the username variable | |
$num = 2; // Set the number of Tweets you want to display |
NewerOlder