vendredi 16 octobre 2015

Displaying image description with the visual editor

Wordpress v.4.2.5

I need to be able to display an image's description when it has been placed on a page with the visual editor, exactly the same way that editor deals with captions. I've managed to achieve this by using the img_caption_shortcode filter, but this only applies if the image has a caption.

Basically, some images will have captions, some will have descriptions, some will have both. I need both fields to be displayed underneath the image when they have been placed with the visual editor.

Any suggestions?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire