Support » Fixing WordPress » Captions not working properly

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Are you using any plugins which might break the caption shortcode? Try disabling your plugins, see if that makes it work.

    Thread Starter samanime

    (@samanime)

    Good idea, but no go. I deleted any deactivated plugins (not really for this, just housekeeping) then deactivated all active plugins and nothing changed for the caption.

    kmessinger

    (@kmessinger)

    Your code is very different from mine as far as a picture and a caption go.

    [caption id="attachment_79" align="aligncenter" width="201" caption="Image 3.3.1: An table diagram."]<img class="size-full wp-image-79" title="html33table" src="http://www.htmlblox.com/wp-content/uploads/2008/08/html32table.png" alt="Image 3.3.1: An table diagram." width="201" height="201" />[/caption]

    <div id="attachment_1351" class="wp-caption alignleft" style="width: 161px"><img class="size-full wp-image-1351" title="candparkguide" src="http://www.ourexcellentadventures.com/wp-content/uploads/2009/02/candparkguide.jpg" alt="This one looks good!" width="151" height="220" /><p class="wp-caption-text">This one looks good!</div>

    Mine is on the bottom.

    Thread Starter samanime

    (@samanime)

    Yes, if I’m not mistaken when I post an article that [caption] gets converted to what you posted at the bottom. These captions used to work as well, and I believe the code looked very similar to what you posted.

    I didn’t make any changes or anything either. I just noticed one day that they were broken.

    I may have to just change what quote the Add Media link adds to my file, though that would be a bother.

    Thread Starter samanime

    (@samanime)

    Ah, I fixed it. I forgot that I began to work on a plugin that would replace terms with terms in a glossary I had set up. I did a sort of hard-coded plugin just for testing and was echoing “get_the_content()” instead of using the_content().

    I guess within the_content() it must do the processing to convert [caption] to <div class=”wp-caption”>.

    Thanks for the help everyone.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Captions not working properly’ is closed to new replies.