WordPress Twitter widget
Filed Under: Programming; Wordpress
I’ve been wanting to dip my foot into WordPress widgets for while so when I noticed Twitter didn’t have a WordPress widget I decided to write one. Of course, I’m not the first.
The widget makes use of Twitter’s Javascript ‘badge’. It’s not sophisticated and there’s only 3 configuration options: Twitter account name, widget title and number of updates you want shown.
It saves you having to paste the code into your page and gives you a nice interface for changing the display options.
Installation
- Download the Wordpress Twitter widget from WordPress.org.
- Unzip the downloaded file and upload/copy ‘twitter-widget.php‘ to your ‘/wp-content/plugins/widgets/‘ folder.
- Activate the ‘Twitter‘ plugin in your WordPress’ Plugins admin.
- Drag the ‘Twitter‘ widget to the sidebar in your WordPress’ Widgets admin.
- Configure the widget with your Twitter account name, widget title and number of updates you want shown.
- Save Changes and you’re done!
Thanks go to Mike Jolley for his handy widget tutorial.
Update - 2007-12-19
The widget is now hosted on WordPress.org. Thanks guys.
Also gotta send some love to the guys (and girls) that write Subversion, Aptana and Subclipse.
![Blade Runner (Five-Disc Ultimate Collector's Edition) [Blu-ray]](http://ecx.images-amazon.com/images/I/41IzLhqREAL._SL75_.jpg)








Comments
16 Comments so far
Just to let you know that this works on WP 2.3.1 . . . any way to get the URLs to link?
If it also could handle long URLs so they didn’t go out of the margin in my sidebar, like wrap them around, this plug in would be brilliant.
Thanks!
By Geeky Drunk on 01.08.08 1:36 pm
Works for me on 2.4-bleeding (latest Subversion checkout). Just a note–you don’t have to copy the PHP file into wp-content/plugins/widgets; just extracting it into the plugins folder made it show up in the admin interface, and I was able to add it to the sidebar from there.
By Jesse on 01.10.08 4:26 pm
Thanks for the compatability updates guys. Appreciate it.
By Sean
on
01.11.08
9:09 pm
[...] Plugin Homepage [...]
By Twitter Widget_Wordpress plugin on 01.22.08 8:11 pm
Is there any way to install this without using widgets? I’m not sure what the
code is supposed to be to insert it into the sidebar.phpBy Cher
on
01.26.08
8:12 am
If you want to edit sidebar.php yourself you can get the HTML from Twitter’s “badges” page at http://twitter.com/badges/html
By Sean
on
01.26.08
11:45 am
[...] le plugin wordpress qui balance mes 5 derniers feeds sur mon [...]
By Twitter | Arnaud ROBAIL, The Blog on 02.21.08 6:38 pm
[...] Wordpress Twitter Widget bindet die Kurzmeldungen direkt in eine Wordpress-Seite [...]
By EightyOne.ch
on
02.29.08
3:42 am
[...] Twitter Widget ????????Widget?????Tweet??? [...]
By 12?Twitter???Wordpress?? | ???? on 03.04.08 6:00 am
It also works on 2.5 by the way. Nice plugin
By Ray
on
04.08.08
4:33 am
Thanks Ray.
I’ll have to upgrade now
By Sean
on
04.09.08
10:47 pm
hi. Thanks for plugin
perfect.
regards
By baron
on
05.12.08
12:28 am
[...] winner is the cleverly named Twitter Widget. It doesn’t allow you to update your twitter status, but upon reflection I realized I [...]
By Mike’s Blog » Blog Archive » twitter plugin
on
06.11.08
3:39 am
[...] use “Twitter Widget” by Sean Spalding for my needs and things seem to work great. There are instructions at the site as well as files for [...]
By It’s an online life - Blogging - Finalint
on
06.24.08
12:11 am
[...] Twitter Widget - Integra las últimas actualizaciones de twitter en la barra lateral. [...]
By efremigio » Blog Archive » Plugins para tunear Wordpress
on
07.15.08
11:41 pm
[...] Twitter Widget ????????Widget?????Tweet??? [...]
By 12?Twitter???Wordpress?? | WFan's Blog
on
09.04.08
10:40 pm
Leave a comment
Line and paragraph breaks automatic, HTML allowed:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>