WordPress plugin that adds a shortcode that echos the current Twitter avatar for a username.
Adds twivatar shortcode. When also passed a Twitter handle as the name attribute, the plugin will get the current avatar from Twitter, and store the URL for 24 hours. It then echoes out an image.
A demo can be seen in the sidebar at Bsktweetup.info.
- Download the latest tagged archive (choose the "zip" option).
- Go to the Plugins -> Add New screen and click the Upload tab.
- Upload the zipped archive directly.
- Go to the Plugins screen and click Activate.
- Download the latest tagged archive (choose the "zip" option).
- Unzip the archive.
- Copy the folder to your
/wp-content/plugins/directory. - Go to the Plugins screen and click Activate.
Check out the Codex for more information installing plugins manually.
Using git, browse to your /wp-content/plugins/ directory and clone this repository:
git clone git@github.com:GaryJones/twivatar.git
Then go to your Plugins screen and click Activate.
A basic example would look like this:
[twivatar name="GaryJ"]
Where GaryJ is the twitter avatar to get.
Attributes (optional unless marked otherwise):
name- Twitter handle. Required.size- One of 'mini', 'normal' or 'bigger' Default is 'normal'.link- Whether to link the image to the profile page on Twitter. Default is true.linkclass- class attribute value of the link. Default is none.rel- rel attribute value of the link. Default is none.class- class attribute value of the image. Default is none.title- title attribute value of the image. Default is none.
[twivatar name="Gamajo" size="bigger" class="alignright" rel="me"]
Not yet. In a future version of the plugin, you will be able to. Current default is 24 hours.
Not yet. In a future version of the plugin, you will be able to. Current default is to use an image file called no-twitter-image.png in a folder called images in your active theme.
This image is only used if no image can be determined for the account. Either Twitter is down, or the account doesn't exist. If the account does exist, but has no image, then the default one that Twitter uses will be stored.

Built by Gary Jones Copyright 2012 Gary Jones, Gamajo Tech