WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

AutoCap

Automatically generates a caption for images based on the IMG title attribute.

Usage

The plugin converts any IMG tag with a non-empty title attribute into a caption block, with the text of the title attribute becoming the caption. In addition, the plugin will extract the alignment of the caption that WordPress usually adds and assign that to the caption block.

So:

<img src="file.jpg" alt="name" title="This will be the caption." width="400" class="alignleft">

will become:

<div class="autocap alignleft" style="width: 400px;">
    <div>
        <img src="file.jpg" alt="name" title="This will be the caption." width="400">
        <p class="autocap-text">This will be the caption.</p>
    </div>
</div>

The plugin has a Admin options panel that let's you set the start date for the plugin's activity. Any posts you've made after that start date will be affected by the plugin, and posts made before that date will not be. This allows you to easily maintain backwards compatibility with posts you've already made, while captioning new posts after you add the plugin.

Leaving the date field blank will result in all posts being captioned.

You can more finely control what is captioned by adding "nocap" or "autocap" to the IMG class attribute. The "nocap" class attribute will suppress an image from being captioned, even if it has a the title attribute set. The "autocap" class attribute works in conjunction with the Restrict Captioning option in the Admin panel. When Restrict Captioning is set the plugin requires the "autocap" class attribute to trigger the captioning.

Release Notes

0.94 - Added support for "nocap" and "autocap" class attributes on images for finer control of captioning. (based on a suggestion by Blair Mitchelmore) 0.93 - Fixed bug that prevented parenthesis from being used in the captions. 0.90 - Beta

Requires: 1.5 or higher
Compatible up to: 2.8
Last Updated: 2009-6-24
Downloads: 810

Ratings

4 stars
4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1