Plugin Directory

Twitter Widget Pro

Can I use more than one instance of this widget?

Yes, Twitter Widget Pro employs the multi-widget pattern, which allows you to not only have more than one instance of this widget on your site, but even allows more than one instance of this widget in a single sidebar.

Can I follow more than one feed?

Absolutely, each instance of the widget can have different settings and track different feeds.

I get an error similar to "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.../wp-twitter-widget.php on line ##" when I try to activate the plugin. Is your plugin broke?

No. This error occurs because the plugin requires PHP 5 and you're running PHP 4. Most hosts offer PHP5 but sometimes you have to enable it in your control panel, through .htaccess, or by asking them. There may be instructions for your specific host in the Switching to PHP5 article in the codex.

How can I add this widget to a post or page?

You can now use the twitter-widget shortcode to embed this widget into a post or page. The simplest form of this would be [twitter-widget username="yourTwitterUsername"]

How exactly do you use the twitter-widget shortcode?

The simplest form of this would be [twitter-widget username="yourTwitterUsername"] However, there are more things you can control.

  • before_widget - This is inserted before the widget.
  • afterwidget - This is inserted after the widget, and is often used to close tags opened in beforewidget
  • before_title - This is inserted before the title and defults to
  • after_title - This is inserted after the title and defults to
  • errmsg - This is the error message that displays if there's a problem connecting to Twitter
  • hiderss - set to true to hide the RSS icon (defaults to false)
  • hidereplies - set to true to hide @replies that are sent from the account (defaults to false)
  • avatar - set to true to display the avatar from the Twitter account (defaults to false)
  • targetBlank - set to true to have all links open in a new window (defaults to false)
  • showXavisysLink - set to true to display a link to the Twitter Widget Pro page. We greatly appreciate your support in linking to this page so others can find this useful plugin too! (defaults to false)
  • items - The number of items to display (defaults to 10)
  • showts - Number of seconds old a tweet has to be to show ___ ago rather than a date/time (defaults to 86400 seconds which is 24 hours)
  • dateFormat - The format for dates (defaults to'h:i:s A F d, Y' or it's localization)
  • title - The title of the widget (defaults to 'Twitter: Username')

You can see these put into action by trying something like:

  • [twitter-widget username="wpinformer" before_widget="<div class='half-box'>" after_widget="</div>" before_title="<h1>" after_title="</h1>" errmsg="Uh oh!" hiderss="true" hidereplies="true" targetBlank="true" avatar="1" showXavisysLink="1" items="3" showts="60"]Your Title[/twitter-widget]
  • [twitter-widget username="wpinformer" before_widget="<div class='half-box'>" after_widget="</div>" before_title="<h1>" after_title="</h1>" errmsg="Uh oh!" hiderss="true" hidereplies="true" targetBlank="true" avatar="1" showXavisysLink="1" items="3" showts="60" title="Your Title"]
  • [twitter-widget username="wpinformer"]

Why can't I display a friends feed anymore?

Aparently the database queries required to display the friends feed was causing twitter to crash, so they removed it. Unfortunately, this is outside my control.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (3 reporting)

100%
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,3,3 50,2,1 100,1,1 0,1,0
100,1,1 100,3,3 100,2,2 100,3,3
100,1,1 100,1,1 100,2,2

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(75 ratings)