Add your latest twitter stream without a wordpress plugin or Twitter js script, just by using the native WordPress RSS functions file.
Replace fetch_rss(’http://twitter.com/statuses/user_timeline/1487781.rss’) with your Twitter RSS Feed instead of mine, usually at the bottom of your Twitter page, then check this line $rss->items, 0, 1, where 1 indicates the Twitter messages to show up, replace it with four, then four of your latest messages will show up.
Here is the code:
<?php require_once (ABSPATH . WPINC . ‘/rss-functions.php’); ?>
<?php $today = current_time(’mysql’, 1); ?>
<?php
$rss = @fetch_rss(’http://twitter.com/statuses/user_timeline/1487781.rss’);
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<?php
$rss->items = array_slice($rss->items, 0, 1);
foreach ($rss->items as $item ) {
?>
<a href=’<?php echo wp_filter_kses($item['link']); ?>’>
<?php echo wp_specialchars($item['title']); ?></a>
<small>—
<?php echo human_time_diff( strtotime($item[’pubdate’], time() ) ); ?><?php _e(’ago’); ?></small>
<?php
}
}
?>












