Just another bunch of stuff pouring out of some guy’s head

WordPress Twitter widget

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

  1. Download the Wordpress Twitter widget from WordPress.org.
  2. Unzip the downloaded file and upload/copy ‘twitter-widget.php‘ to your ‘/wp-content/plugins/widgets/‘ folder.
  3. Activate the ‘Twitter‘ plugin in your WordPress’ Plugins admin.
  4. Drag the ‘Twitter‘ widget to the sidebar in your WordPress’ Widgets admin.
  5. Configure the widget with your Twitter account name, widget title and number of updates you want shown.
  6. 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.

Comments

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!

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.

Thanks for the compatability updates guys. Appreciate it.

[...] Plugin Homepage [...]

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.php

If you want to edit sidebar.php yourself you can get the HTML from Twitter’s “badges” page at http://twitter.com/badges/html

[...] le plugin wordpress qui balance mes 5 derniers feeds sur mon [...]

[...] Wordpress Twitter Widget bindet die Kurzmeldungen direkt in eine Wordpress-Seite [...]

[...] Twitter Widget ????????Widget?????Tweet??? [...]

It also works on 2.5 by the way. Nice plugin :)

Thanks Ray.

I’ll have to upgrade now ;)

hi. Thanks for plugin

perfect.

regards

[...] winner is the cleverly named Twitter Widget.  It doesn’t allow you to update your twitter status, but upon reflection I realized I [...]

[...] 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 [...]

[...] Twitter Widget - Integra las últimas actualizaciones de twitter en la barra lateral. [...]

[...] Twitter Widget ????????Widget?????Tweet??? [...]

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>

(required)

(required, never displayed)