Plugin Directory

Just A Tweet

Add a function to get the most recent Tweet from a feed

  1. Upload just-a-tweet to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <?php just_a_tweet('username'); ?> in your templates

The 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

Using the shortcode

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

Average Rating

5 stars
(1 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.