Display the caption for an image. caption is a standard WordPress shortcode.
The syntax for the opening part of the shortcode is:
id="| text - value for CSS id= keyword"
class="| classname - custom class"
align="alignnone| aligncenter| alignright| alignleft - CSS alignment class"
width="| numeric - width in pixels (Note: 10 is added to this number)"]
then you code the HTML for the image as the code of the shortcode followed by the end tag [ /caption]
caption is an alias of wp_caption – or vice-versa
The easiest way to create the caption shortcode is to use the
Insert image into post button on the
Add media dialog.