Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix [caption][/caption] tags missing when inserting a thumbnail on a post

Discussion in 'Misc WordPress Requests' started by bowtie6, Dec 16, 2017.

  1. bowtie6


    [caption][/caption] tags missing when inserting a thumbnail on a post, by bowtie6

    Hi –

    Running WordPress 4.9.1. Starting on a new post, blank page. Click “Add Media”, select a picture and make it a thumbnail, left align. Expected behaviour is to start typing, and see text appear on the right of the image. This is now not happening.

    So switch to “Text” mode and I see my image info is missing the [caption][/caption] tags. For example:

    <a href="IMG_4864.jpg"><img class="alignleft size-thumbnail wp-image-4648" src="IMG_4864-150x150.jpg" alt="" width="150" height="150" /></a>

    I opened another post I had written previously and I see an image working properly. This time the code looks like this:

    [caption id="attachment_4608" align="alignleft" width="150"]<a href="IMG_4835.jpg"><img class="wp-image-4608 size-thumbnail" src="IMG_4835-150x150.jpg" alt="" width="150" height="150" /></a> "Image description"...[/caption]

    As you can see there is a difference. The caption information is missing. What happened? Is this a known bug?

    [caption][/caption] tags missing when inserting a thumbnail on a post

Share This Page

Monarch Social Sharing Plugin