Wordpress Link in Image Caption

We are currently developing some micro sites geared specifically towards a few products, and they're based off of Wordpress. As of Wordpress 2.6, you can use the visual editor to insert an image with a nice caption under it.

However, if you want to turn that caption into a link pointing to some URL, Wordpress will strip that out. Tons of people are searchign for the solution, and there have been some wild ones involving CSS, Regular Expressions, etc.

The solution is so simple that you'll facepalm when you see it: Single quotes.

Here's our example, which works in the current version of WordPress 2.9.1:

[caption id="" align="alignright" width="250" caption='<a href="http://www.whiteflood.info">White Flood Container</a>']<img title="White Flood Container" src="http://www.whiteflood.info/images/white-flood-review-1-thumb.jpg" alt="White Flood Review 1" width="250"/>[/caption]

Note the single quotes around the caption portion!

The problem was that the quotes of the tag were stopping the delimiting quotes of the caption parameter. But caption is happy to use single-quotes, so this is all good.

Boom, done.