- Gallery Styles
- Adding a Gallery or Slideshow
- Editing a Gallery or Slideshow
- Gallery Shortcode
- Manage Gallery Styles Individually
- Examples of Gallery Styles
- Learn more
Image galleries on WordPress.com are a great way to share your pictures with your friends, family, and your followers. An image gallery will display a set of small images attached to a particular post or page. Readers can click on any image to launch a full-size carousel that allows them to scroll through the entire gallery one image at a time. With the slideshow option, images will automatically move from one to the next after a few seconds.
You have three choices for how a gallery will be displayed in your post: a thumbnail grid layout, a tiled mosaic-style layout, or in a slideshow. All sites default to the thumbnail grid style. You can also style each gallery individually.
Tiled layouts can display in one of three styles: rectangular tiles, square tiles, or circular tiles. Along with looking great, the rectangular and square tiled layouts also have hover-over captions to save space while making captions accessible. (Check out examples of all three layout options in this post.)
To switch to tiled layouts from the default, head over to Settings → Media in your blog’s dashboard, scroll down to “Image Gallery Carousel,” and select the box next to “Display all your gallery pictures in a cool mosaic.” Note that choosing this option makes this layout the default for all your blog’s galleries, including those you’ve previously inserted.
Below is an example of an image gallery using the default thumbnail setting. If you click on any of the images you will be able to see what the carousel view looks like:
Adding a Gallery or Slideshow
- Open a post or page for editing. If it is a new post or page, make sure to add a title and save it at least once before trying to insert a gallery or slideshow.
- Click the Add Media button.
- Click Create Gallery at the top left.
- To add images from your hard drive, drag and drop your files into the box that appears, or click Select Files to choose a picture from your computer to upload.
- After the images have finished uploading, you will be shown all the images in your Media Library. Select any additional images you’d like to include in your gallery or slideshow by clicking on them.
To select multiple images, command-click (Mac) or control-click (PC) the ones you want to use.
- Click Create a new gallery at the bottom right.
- On the following screen, click on each image to edit its title, caption, alternate text, and description. (Only the caption will be displayed for the slideshow gallery type.) You can also click and drag photos to re-order them as you like, or choose the Reverse Order or Random Order options:
- Choose how you want the gallery to be displayed in the Gallery Settings area:
- Link to: Does not apply to slideshows.
- Attachment Page: A specialized page in your blog that shows the image in your selected theme.
- Media File: A direct link to the full-size uploaded image.
- Columns: The number of columns of thumbnails to display. This may be affected by your choice of theme, so be sure and test a bit with your current theme. This option does not apply to slideshows.
- Random Order: Check this box to randomize the order of images in your gallery or slideshow. That means the order will change randomly every time the page is loaded.
- Type: Specify the type of gallery here. The options are a default gallery of thumbnail images, a gallery with rectangular tiles, a gallery with square tiles, a gallery with circular tiles, or a slideshow.
- Link to: Does not apply to slideshows.
- When you’ve finished editing your gallery, click Insert gallery.
Editing a Gallery or Slideshow
- Open a post or page with a gallery for editing and make sure that you are in the Visual editing mode.
- Click on the gallery and then click the Edit Gallery icon that appears.
- The editing screen is similar to the one displayed when first inserting the gallery. As before, you can drag and drop images to reorder them and edit each image’s title, alternative text, caption and description by clicking on the image.
- Adjust the Gallery Settings if necessary.
- Make sure to click the Update gallery button to save your settings and before you try to update any of the other gallery settings.
The gallery shortcode can be used in its simplest form like this (and will display the images attached to the post or page):
Note that after you’ve published or updated a post or page including the gallery shortcode, the Visual editor will no longer display the shortcode itself. To edit an already-entered shortcode, simply switch to the Text editor, where you will be able to see and edit the code.
To insert a tiled gallery, add the relevant shortcode addition after “gallery”:
To insert a slideshow gallery type, use this shortcode:
You can also pass other settings with the gallery shortcode.
orderbyHow to order the imagesID, menu_order, rand, title + ASC, DESCmenu_order ASC, ID ASC
|columns||Number of columns used to display the images||An integer greater than 0 (only valid for the default thumbnail grid)||3|
|type||Type of image arrangement to display||“rectangular”, “square”, “circle” or “slideshow”.||Leave option out for default thumbnail arrangement|
|size||Size of the images to display||thumbnail, medium, large, full (only valid for the default thumbnail grid)||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. If this option is beinf used, other attached images won’t be added to the gallery.||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
You can follow almost the same steps for getting a post ID. Instead of going to your Media Library though, go to your Posts screen and then click on the title of the post you need.
[gallery columns="5" orderby="title DESC, ID ASC"]
Manage Gallery Styles Individually
You can also manage gallery styles individually. To do so, go to Settings → Media. Under the section Image Gallery Carousel, uncheck the box Display all your gallery pictures in a cool mosaic and click Save, to keep the default thumbnail grid layout across your site.
When you want to include a gallery in a post, insert it as usual and then simply switch over to the Text tab in the post editor and add the code for the gallery style you want to use (see Gallery Shortcodes).
If you do not add a style, it will default to the thumbnail grid layout.
Examples of Gallery Styles
This is how each type of gallery style looks like. Styling each gallery individually will work only when the checkbox that says “Display all your gallery pictures in a cool mosaic” is unchecked in Settings → Media. For more information on how to style each gallery individually, please see Manage Gallery Styles Individually.
If you have trouble creating a gallery in your post, try entering the title and saving it as a draft before you upload any images.
Photoblogging Made Easy: Exploring Gallery Types (Hot Off the Press, March 12, 2014)