WordPress includes excellent features for publishing photo galleries. Our themes provide a page template that lists all galleries in one place. There are also widgets for displaying galleries.
Contents
Galleries Anywhere
You can use WordPress’s Gallery block in your content (pages, posts, sermons, events, locations, etc.). You might want to create a page specifically for a gallery or show a gallery in a blog post, a tour for a location, photos for an event, etc.
Adding a Gallery
- When editing content, click the + button to add a Gallery block.
- Click Upload or Media Library to choose images.
- Click Create a new gallery.
- Optionally drag the images to change their order.
- Click Insert Gallery.
- Optionally add captions, change the number of columns, etc.
Editing a Gallery
There are several ways you can change your gallery.
- Click an image then click the X to remove it.
- Click an image then click “Write caption…” to add a caption.
- Click your block then look to the right to change columns and other settings.
- Click your block then click the Edit icon to change or reorder the images.
Individual Photos
Titles and Descriptions
You can set a title (uses filename when not changed), caption (one-liner under the photo) and description (full details; longer than the caption) on each photo. You can do this when creating a gallery or by Editing a Gallery (see above). You can also go to Media in the main menu to edit your uploaded photos’ information.
Page or Lightbox
When the user clicks a photo in a gallery, they are taken to a page that shows a large version of the photo along with any title, caption and description you provide. You can optionally show each photo in a lightbox. When a thumbnail is clicked, the large version of the photo will appear in place. We recommend the WP Featherlight plugin (free) if you want gallery lightboxes.
All Galleries Page
You can create a page that lists all galleries existing on the site. This provides an easy way for visitors to browse all of your photos.
- Go to Pages > Add New.
- Enter a title and any content that you want to appear at the top of the galleries list.
- Click Document, then…
- Under Template, choose “Galleries” (plural).
- Click Publish.
Excluding Galleries
You can exclude galleries from this page (and the gallery widget) by checking the box under Options for “Exclude from gallery widgets/templates” when adding or editing a page or post that has a gallery.
When making a regular page with a gallery, set Template to “Gallery” (singular). For themes supporting a sidebar, this will cause the Gallery Sidebar to be used. This way you can show widget specifically relating to galleries.
Note that galleries added to other content (blog posts, locations, events, etc.) will not use this sidebar. Instead, they will use the sidebar matching their own section. For example, a location with a gallery will show the Locations Sidebar instead of the Gallery Sidebar.
Gallery Widgets
You can go to Appearance > Customize > Widgets to use widgets that show galleries and images. There are a couple gallery-related widgets available.
- CT Galleries – list all pages, posts, etc. that have a gallery
- CT Gallery – show photos from one or all galleries
The CT Gallery widget is useful for showing the latest photos from all galleries on the Homepage (when your theme supports it).
Read the Widgets guide for more information.
More Information
- The WordPress Gallery on the WordPress.org Codex
- Edit Media – how to edit photos (crop, rotate, etc.) on the WordPress Codex