Photo of desk with computer monitor displaying Montclair State University website.

Captions

The caption shortcode signals to WordPress that you want an image to be resized automatically to its container. The container can be anything: the content area, a column, a table cell, etc … and the website’s javascript will generate an image appropriate for that space and use that image automatically.

You can also use the caption shortcode to place captions at the bottom of your images – simply place both an image and some text inside the shortcode.

Photo of teacher and students in dance studio class.

The image above is inside a caption shortcode by itself.

Photo of teacher and students in dance studio class.
This is a caption

The image above is in a caption shortcode with some text next to it.

Code Sample

[caption]<img src="http://www.montclair.edu/web-services/wp-content/uploads/sites/119/2017/12/090816_7637_CART-Dance-Studio-150x150.jpg" alt="Photo of teacher and students in dance studio class." width="150" height="150" />[/caption]
[caption]<img src="http://www.montclair.edu/web-services/wp-content/uploads/sites/119/2017/12/090816_7637_CART-Dance-Studio-150x150.jpg" alt="Photo of teacher and students in dance studio class." width="150" height="150" />[/caption]