WordPress(.com) – Adding a Gallery

Gallery – WordPress.com.

To use the gallery shortcode, you’ll need to switch to the Text editor. The gallery shortcode can be used in its simplest form like this (and will display the images attached to the post or page):

[gallery]

To insert a tiled gallery, add the relevant shortcode addition after “gallery”:

type=”rectangular”
type = “square”
type = “circle”

You can also pass other settings with the gallery shortcode.

Option Description Choices Default Setting
columns Number of columns used to display the images An integer greater than 0 3
type Type of image arrangement to display “rectangular”, “square” or “circle”. Leave option out for square thumbnail arrangement
link How each image will be linked file file
orderby How to order the images ID, menu_order, rand, title + ASC, DESC menu_order ASC, ID ASC
size Size of the images to display thumbnail, medium, large, full thumbnail
id The gallery will display images which are attached to that post. Any post or page ID that has images attached to it Default is to show the gallery post
include The gallery will include specific images comma separated attachment IDs* – include=”23,39,45″ N/A
exclude The gallery will exclude specific images comma separated attachment IDs* – exclude=”24,30,43″ N/A

Note: To get an attachment ID for an image, go to your Media Library and click on the title of the image you want. You can find the ID in the URL (the number after post=).

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s