• Resolved SaladGoat

    (@saladgoat)


    When I upgraded to the latest version of WordPress, I was quite happy to find that captions on images would support html. No more writing out the full div code.

    But in actuality, the new captions are completely broken and don’t work at all. What I end up with is a picture with the caption text directly beside it, with no frame/border.

    Thankfully it didn’t break old pages, but now I am having to do extra work to write normal captions. Do I have to use html?

    Here is how the final code looked before the changes:

    <div id="attachment_4836" class="wp-caption alignright" style="width: 290px"><a  href="image.jpg" class="thickbox no_icon" title="image"><img src="image-290x427.jpg" alt="image" title="image" width="290" height="427" class="size-medium wp-image-4836" /></a>
    	<p class="wp-caption-text">Image</p>
    </div>

    Now it looks like this:

    <a href="image.jpg" class="thickbox no_icon" title="image"><img src="image-290x427.jpg" alt="image" title="image" width="290" height="427" class="size-medium wp-image-4836" /></a> Image<br />

    They both look very similar in the html editor, being enclosed in [caption] shortcode, but come out very differently. No div tags at all in the new version.

    Is this only happening to me? I can’t find any reference to this mess anywhere.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘caption not a caption’ is closed to new replies.