<?php date_default_timezone_set('Europe/London'); require "ow-twitter-feed.php"; function add_shortcode($name, $func) { } $t = new TwitterStatus('craigbuckler', 5); $feed = $t->Render(); echo $feed;
function GetTwitterFeed($params = array()) { extract(shortcode_atts(array('id' => '', 'count' => 5), $params)); if ($id) { $t = new TwitterStatus($id, $count); $feed = $t->Render(); } else { $feed = ''; } return $feed; }