The Gallery block contains individual Image blocks for each image and arranges them attractively. Our guides will show you how to add and customize galleries on your site.
In this guide
Have a question?
Ask our Support AssistantIn this video, you’ll learn how to use the Gallery block on your WordPress.com site to display several images together in a grid. It covers controlling the number of columns, spacing, links, and captions.
Use the Gallery block to display several images together in a tidy grid, instead of stacking them one below another. A gallery works well for photo collections, product photos, portfolios, event recaps, and team pictures.
You control how many columns the grid uses, the spacing between images, and whether each image links to its full-size version or another location. You can also add a caption and alt text to every image in the gallery.

The following guides cover everything you can do with the Gallery block:
- Create a gallery: How to add a Gallery block and fill it with your images.
- Customize gallery settings: How to set the number of columns and add links, captions, or alt text to individual images.
- Style your gallery: How to adjust spacing, color, and borders, and style individual images.
A Dynamic Gallery automatically shows every image attached to the current post or page, and it updates as you attach or remove media. Use it when you want a gallery that stays in sync with the post’s media instead of choosing each image yourself.
To show attached media automatically, follow these steps:
- Edit the post or page where you want the gallery.
- Add a Gallery block: click the + block inserter, search for Gallery, and select it.
- In the new Gallery block, click “Use attached images”. The gallery fills with every image attached to the post or page:

The gallery shows the attached media in the editor and on your published page, and it updates on its own as you attach or remove images.
To choose the images yourself instead, convert the gallery back to a regular gallery. Click “Convert to images” in the block toolbar, or open the block settings sidebar and click “Convert to individual images”.