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

Image caption shortcode can't parse #53

Closed Narga closed 11 years ago

Narga commented 12 years ago

Today, when I posting a new topic with Reverie, I found that Wordpress's image caption shortcode can't parse like origin theme. When I insert a image with caption from media modal box, it's only a tag and image tag without [caption] code. I've check the functions.php then I known the image caption was rewrote for HTML5, that's great but the editor only add simple image with link. Sorry for this mess content, I'm writing with on-screen keyboard because my laptop's keyboard has a problem.

Firestorm-Graphics commented 12 years ago

I believe caption tags are stripped, check in functions.php

milohuang commented 12 years ago

Looks like the tags were stripped by the HTML5 function. You need to do a workaround for adding caption. First insert the image, and then click the image and choose "edit image" to add caption. In this way, it works. Or you can just remove those functions (image_tag_class and cleaner_caption) in functions.php.