Image Caption

Adds image caption under images that have their title or alt attribute defined.

Author:Yaosan Yeo (profile at wordpress.org)
WordPress version required:2.0
WordPress version tested:2.5
Plugin version:0.2
Added to WordPress repository:01-02-2008
Last updated:24-05-2008
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.channel-ai.com/blog/plugins/image-...
Total downloads:16 356
Active installs:200+
plugin download
Click to start download

Extracts the title or alt attribute from images within your blog post and generates a neat caption directly underneath those images. Supports custom CSS styling for captions.

Features:

  • generates image caption using img tag’s title or alt attribute
  • standards compliant: valid XHTML
  • degrades gracefully when disabled
  • supports images with links (e.g. to higher resolution of the same image)
  • supports MyCSS by disabling default CSS import
  • supports custom CSS class for div image container
  • automatically adds width and height attribute to your image
  • does not write to your WordPress database

Usage

Once activated, you can start adding caption to your image by adding title attribute to it:

<img src="/images/picture.jpg" alt="" class="center" title="A sample caption">

CSS classes supported “out of the box” are: center, alignleft, alignright.

If you prefer to use “alt” attribute for the generation of image caption, open the php file and change $ic_att to “alt” instead of “title”.

More usage details can be found at the plugin’s homepage.

History

0.2 [2008.05.22]

  • Added: support for alt attribute
  • Added: option to disable stripping of title attribute
  • Changed: tweaked regex detection

0.1 [2008.01.29]

  • Initial release