We have a client that is using a wysiwyg editor to add multiple photos and different bits to a custom post type.
They are including a caption using the WordPress Image caption functionality.
How would we be able to (efficiently) use Fancybox’s title option to do this?
Here is the structure:
<div id="attachment_180" class="wp-caption">
<a href="image.jpg" rel="performance">
<img class="size-full" src="someimagethumb.jpg">
</a>
<p class="wp-caption-text">The Image Caption</p>
</div>
I think you might want something like this
Explanation:
For each pic
div(as there may be many on the page), do the followingtitleattribute in theimgelementpelementExample: http://jsfiddle.net/ZVu9e/