ShiftThis | Image Captions

This plugin will create a caption under all Post & Page images using the image’s alt text.

Author:ShiftThis.net (profile at wordpress.org)
WordPress version required:2.0.2
WordPress version tested:2.1.3
Plugin version:1.2
Added to WordPress repository:10-05-2007
Last updated:31-07-2007
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.shiftthis.net/wordpress-image-capt...
Total downloads:3 851
Active installs:10+
plugin download
Click to start download

This plugin will create a caption under all Post & Page images using the images’s alt text. Javascript dynamically puts the image in a div with the alt text as the caption below. The images title attribute is then removed for redundancy and the alt attribute is set to blank. Captions are not displayed if no alt text is present or if the alt text matches the image name (WordPress?s default habit). It also dynamically switches the images align attribute to a float attribute on the div for proper web standards text wrapping. You can then style using the div’s ?caption? class and the containing span element.

How it works

In your WP text editor the image code generally looks something like this:

<img src="http://www.yoursite.com/wp-content/uploads/someimage.jpg" alt="My image caption" title="My image caption" height="150" width="250" align="right" />

It will output on your website like this:

<div style="width: 250px; float: right;" class="caption">
<img src="http://www.yoursite.com/wp-content/uploads/someimage.jpg" height="150" width="250" /><br>
<span>My image caption</span>
</div>