Add a function to get the most recent Tweet from a feed
just-a-tweet to the /wp-content/plugins/ directory<?php just_a_tweet('username'); ?> in your templatesThe function just_a_tweet takes up to 4 parameters
$twitterUser - Required - The name of the Twitter user you want to request
$cacheAge - Optional - Number of minutes after which the cache is considered stale. Defaults to 5
$forceRefresh - Optional - If true then the cache is not used, although it is still filled. Defaults to false
$echo - Optional - Whether the function should also echo out the HTML built. Either way the HTML is returned. Defaults to true
There is also a shortcode just_a_tweet that you can use inside your posts and pages.
[ just_a_tweet twitteruser=yourtwitter ] will pull the most recent tweet from
whatever Twitter account you pass as yourtwitter.
Requires: 2.7 or higher
Compatible up to: 3.1.4
Last Updated: 2011-7-23
Downloads: 584
Got something to say? Need help?