milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

Caption shortcode does not show after adding an image with a caption #161

Open gorelog opened 11 years ago

gorelog commented 11 years ago

If I add an image with a caption, the shortcode or the caption does not show in the editor. All you get back is the image code.

What should look like this: [caption id="attachment_1" align="alignleft" width="225"]<a href="/wp-content/uploads/2012/09/something.jpg"><img src="/wp-content/uploads/2012/09/something.jpg" alt="Yo" width="225" height="400" class="" /></a> This is a caption[/caption]

Looks like this: <a href="/wp-content/uploads/2012/09/something.jpg"><img src="/wp-content/uploads/2012/09/something.jpg" alt="Yo" />

It appears to be reverie_image_editor causing the issue in lib/clean.php.

Just tested using the latest Reverie and WordPress.

Thanks for the theme. It is pretty great!

gorelog commented 11 years ago

Just found this https://github.com/milohuang/reverie/issues/53. I know I searched before posting. Anyway, not really the answer I was looking for. Does using get_image_tag in a same functions.php always have the same effect?

Hopefully I can experiment with this next week sometime.

designerwood commented 10 years ago

I still have this problem as well. Looking at the code I wasn't able to figure out any way around it yet other than commenting out the function as suggested, but that kind of goes against enabling foundation functionality.

Currently a client is having to add the image first, then edit the image and it appears to move the caption text to the alt field. Re add the caption on the edit image screen, then it saves and displays fine.