without the ‘broken’ caption visible in the posted link, there is no possibility anybody can comment on your problem.
Sorry… I fixed it by killing the caption, but I’ve reactivated the caption on the first photo at that link. See what happens to everything afterward.
unfortunately, I have no solution;
seems to be an issue particularly with headway themes;
I guess they possibly run some filter code on the caption shortcode function, for the ‘pin-it’ button (?).
Confirmed – I’m not using Headway, and I have the same issue.
The problem is that a caption should be generated like this:
[caption id="attachment_123" align="aligncenter" width="550" caption="My Caption"]<img src="...">[/caption]
but WordPress 3.4 seems to insert it as
[caption id="attachment_123" align="aligncenter" width="550"]<img src="...">My Caption[/caption]
Looks like we have a bit of manual editing to do before they put out a hotfix for this.
What theme ARE you using? I’ve seen a few different themes out there having caption issues
It’s strictly an issue with the WordPress coding, as it wasn’t a problem before the update and is only an issue for posts after the update. I’ve asked my theme developer, and they flat out said, how about WordPress fixes that? But WordPress keeps saying it’s a theme issue. I’m firmly in the camp that it needs to be fixed in 3.4.1.
In the meantime, is there a place I can fix this manually, and is that a good idea?
It is not a WordPress core or update issue. It is up to your theme’s developer to fix the issue in his/her theme. FWIW, I’m not seeing caption issues in any of the 15 free themes I currently have available for download. So it most be a theme-specific issue.
It’s not a theme issue. Try to add a new picture to a fresh post from the back end. Then switch to the HTML view and see what WordPress has inserted. Then compare this to what WordPress has inserted before the upgrade. The Theme has nothing to do with how WordPress inserts code into the post.
Hi, I also had the same problem with my image captions not being aligned under the image or in the frame (the frame is lost) after the upgrade to 3.4. I use theme Twenty-Eleven, and I haven’t done anything except hit the update button. I know nothing about code, so I’m not sure what to do to fix this…
My old posts are fine, my new post is not: http://lexireidstudio.com/2012/06/17/shadow-boxes-and-three-dimensional-collages/
Any assistance would be greatly appreciated!!
Esmi, I believe you are wrong, as are other moderators on similar posts. If lexistudio is having this problem with Twenty-Eleven, the problem is not with themes. Has anyone from WP actually tested this in real time as per my original post?
Well, I’m using Thesis and I am confident that this is definitely and provably a WordPress issue, as has been exactly described by Jay Versluis in his first post above.
As he says, if you change this:
[caption id="attachment_123" align="aligncenter" width="550"]<img src=”…”>My Caption[/caption]
[caption id="attachment_123" align="aligncenter" width="550" caption="My Caption"]<img src=”…”>[/caption]
then captions start working properly again.
All our different themes were handling captions just fine before the update, now we are all suffering the same problem, and I’ll bet we can all fix it by making the changes suggested by Jay. Thus logically it is a problem that has been introduced by the WordPress update.
OK, further research indicates that we might be wrong about it being a WordPress problem.
I’m not a coder, but from what I can gather, the way WordPress used to do captions in the past was problematic, and so a number of theme developers introduced their own hacks to compensate.
Now WordPress 3.4 has implemented Captions correctly, the hacked solutions used by those themes are failing.
Still, if captions are broken on your site and you have to implement corrections, Jay’s recommendation still works never-the-less.
Except I’m using Twenty Eleven and I’m such a newbie to WP that I haven’t done anything except do the automatic WP upgrades and now I have this caption issue. I uninstalled all of my plugins (I only have 3), tried again, did the upgrade again and still not better.
I would love to try Jay’s fix – but where do I go on my site to do this? I normally do everything from the Dashboard, so I have zero coding experience.
no problem about the lack of experience – we’ve all been there, trust me 😉
Go to where and how you normally create a new post (or amend an existing one), it’s the Edit Post window. At the top right of your text editing window there are two tabs: Visual and HTML. You’re probably in the Visual Editor most of the time for typing text and inserting images. When you click on HTML you’ll see the code that WordPress generates in the background.
Once you’ve added an image with caption, click on the HTML tab and find a code section beginning with [caption… ] and ending with [/caption], just like I said above, and as Rosie-L suggested.
Any questions, let us know.
- The topic ‘Caption broken in new 3.4 posts’ is closed to new replies.