Image

The image shortcode allows you to display an image. The content between the opening and closing shortcode is the image URL. The options for this shortcode are shown below.

OptionDefaultExampleDescription
width(empty)width="200"Resize the image to the given width. If empty, the original image width will be used.
height(empty)height="150"Resize the image to the given height. If empty, the original image height will be used.
alt(empty)alt="My image"The alt attribute of the img tag
title(empty)title="My image"The title attribute of the img tag
id(empty)id="my_image"The id attribute of the img tag
class(empty)class="my_class"The class attribute of the img tag

Examples

[image alt="My image"]http://www.example.com/image.png[/image]
[image alt="My image" width="200" height="150"]http://www.example.com/image.png[/image]

Still having trouble? Head over to the forums.

Forums