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.

176 thoughts on “WordPress Twitter widget

  1. I don’t now why, only can put one twitt widget. I need use 5 at least.
    What i need change o how can i fix this?

  2. Never mind. I just figured it out myself. Simply add the following to style.css:
    .widget span {display:block;}

    Anyway thanks for the nice plugin.. Great job!

  3. Hi Sean,

    I believe you are the author of the Twitter Widget. I have a question. My client would like to see both Twitter and FB posts on his websites. I set him up with a ping account that allows him to post on both Twitter and FB at the same time. If I use your widget will it show posts from both apps?
    Thanks in advance,
    Miriam Freer

  4. I understand, but the ping account posts to both FB and Twitter so whatever the client posts, posts both places. So if it connects to Twitter’s feed that’s fine because all FB posts are there as well.
    Yes?

  5. Sean,

    BTW do you have any slide show widgets? Or one that you would recommend? I just want one to show in a side bar samples of my work.
    Thanks, the newbie nerd,
    Miriam

  6. Hi Sean, i have one question…
    How do call the variable “$widget” to the Twitter widget plugin???
    Example:
    Thanks, Eber

  7. HI great widget! But I have just noticed it is not working in Internet Explorer but not in FireFox. Why do you think this is?

  8. @Nikki, perhaps Javascript is either turned off or there is a Javascript incompatability. Or maybe it’s being blocked by an AdBlocker. Works in both FF3.6 and IE9 for me.

  9. Is there a way to add a second Twitter feed? On our show, both hosts have a Twitter account, and once I add one host’s feed to the sidebar, the widget disappears from the available widgets. I appreciate your response in advance. RB

  10. Pingback: twitter
  11. Hi,

    Is there any way to change the twitter widget plugin to say “1 week”, rather than “1 weeks”?

    I look forward to hearing from you

    Thanks
    Dom

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.