wp plugin to get the latest tweet and show it with a simple function call.
prerequisites:
- you have set up an app on dev.twitter.com to get your API keys and secrets
- your host allows
file_put_contents
andfile_get_contents
(for caching the tweet).
to use:
<?php if (function_exists(getTweet)) {
getTweet();
}
else {
print 'Did you know you can follow us on twitter @youraccount';
}
?>
probably best to wrap it in a <span>
or a <div>
so it can then be styled accordingly.