This plugin adds features to your blog that allow you to display anyone’s latest tweet anywhere in your theme or in place of your blog description (aka tagline).
Installation
- Download
- Unzip
- Upload to wp-content/plugins/
- Activate
- Insert the template tag somewhere into your theme
- Enjoy!
Features
- Set a default Twitter username or specify one when inserting the template tag
- Set a default tweet for when Twitter is down
Compatibility
Twitter tag was tested in Wordpress 2.3 but I don’t see any reasons why it shouldn’t work in earlier versions of Wordpress. If you encounter any bugs, please let me know by leaving a comment.
Licensing

This work is licensed under a Creative Commons License.
Usage
Twitter tag can be used in two ways:
- You can use it to display anyone’s latest tweet anywhere in your theme (requires you to edit your theme’s file)
- You can replace your blog’s description (also know as the ‘tagline’) with the latest tweet from a specified username
- You can also do both!
First let’s go over the first option, it’s the easiest. To do this, simply activate the plugin and go to it’s options page (it’s under ‘Options –> Twitter tag’ in your blog’s admin section). There you’ll find there are two field to fill out, and checkbox. To use Twitter tag in the most simple way, tick the checkbox. No fill in the username you would like to display tweets from (usually your own) and fill in a default message for Twitter tag to display when Twitter is having problems. Now click update options and you’re all done!
Now for the second way of using Twitter tag. First activate the plugin and go to it’s options page. Specify a default username and a default message. Now you can go into your themes files and add the twitter tag. Let’s go over the basic ways of using it:
1 | <?php twitter_tag(); ?> |
This will simply display the latest tweet of the default username specified in the options page.
1 | <?php twitter_tag('differentusername'); ?> |
You can also specify a username when inserting the tag. This way you could make a page where the latest tweets of all your friends are displayed.
1 2 3 4 5 | <?php if ( !twitter_tag('username', FALSE) ) { echo "Twitter is down or the username is incorrent"; } ?> |
You probably won’t need this, but the option is still there. When using FALSE as a second parameter twitter_tag() echoes nothing, it only returns TRUE or FALSE. FALSE means that Twitter didn’t send any valid data or the username is incorrect.
Ofcourse you can also use twitter_tag() inside your themes’ files while also using it to replace you blog description with the latest tweet from the default username.
doesn’t seem to be working in my wordpress 2.5 - is it me or my install?
Chris
23 April 2008 at 20:59Actually it does work - the problem was my webhost had disabled the fopen wrappers option and as such simple xml couldn’t load the remote file.
A small amount of hacking later and it’s working using a system call to wget to retrieve the file.
This solution only works on linux servers and I can send the patched version of the plugin to anyone who wants it
23 April 2008 at 21:47[...] I found the Twitter Tag Wordpress plugin for my blog (http://www.waltervos.com/downloads/wordpress-plugins/twitter-tag/), a winning combination - if only it [...]
23 April 2008 at 22:09Hey Chris,
thanks for the fix!
2 May 2008 at 08:01