Caption Problem
-
Hello there! I used this theme as a boilerplate for a site, and am having some problems with how captions are handled.
On the page I’m editing, in the image panel, I put the text I want into the Caption field, and it looks like this in HTML view:
[caption id="attachment_13" align="alignnone" width="300"]<img class="size-medium wp-image-13" alt="image" src="https://localhost/wordpress4/wp-content/uploads/2013/01/3whTg-300x300.jpg" width="300" height="300" /> Super Descriptive Caption Text! [/caption]
Problem is, this does not get output as a caption on the page. It just shows up as text, not wrapped in any kind of paragraph tags or anything. After doing some reading, I found a workaround, which involves changing things around manually like this –
[caption id="attachment_13" align="alignnone" width="300" caption="Super Descriptive Caption Text!"]<img class="size-medium wp-image-13" alt="image" src="https://localhost/wordpress4/wp-content/uploads/2013/01/3whTg-300x300.jpg" width="300" height="300" />[/caption]
And then it will show correctly.
But every time I swap back from HTML view to Visual view, it puts the caption text back where it put it in the first place, and it goes back to being broken. Yet, if I switch to the 2012 theme, the captions work.
I put a test page up so you can see what I’m talking about without digging through a lot of content: https://mdpmco.com/glamoursmiles/testpage/
The caption next to the picture of the dog (“This is a dog”) is just text.
Is this a problem with the way the theme handles the caption shortcode output? It doesn’t seem to recognize the
[caption]<image>Content of Caption Field[/caption]
format that WordPress is using.
- The topic ‘Caption Problem’ is closed to new replies.