A photo gallery puts a set of images together in a tidy grid, so visitors see your work at a glance instead of scrolling past one photo at a time. For a small business, that matters: a builder's finished projects, a baker's cakes, a hotel's rooms, a shop's products — a gallery shows the work in a way a paragraph never will.
WordPress makes this easy. The built-in Gallery block handles a simple grid in minutes, and a gallery plugin adds layouts, lightboxes and filters when you need more. This guide walks through both ways, and the photo preparation that keeps a gallery fast.
Why a Gallery Beats a Stack of Images
A single image in a post is fine for illustration. But when you have six or ten photos of the same thing, stacking them one after another makes the page very long, and most visitors will not scroll through all of them. A gallery shows them together, in a grid, so a visitor can scan the whole set in seconds and click the one they want to see larger.
Galleries also keep your pages tidy. A services page with a three-column gallery of past work looks deliberate and professional. The same page with ten full-width images looks unfinished. And a gallery gives each photo a caption and alt text, which helps both accessibility and image search.
Prepare Your Photos Before You Upload
Five minutes of preparation before you upload is what keeps a gallery fast. Images are already the heaviest part of most pages, and a gallery multiplies that.
First, pick the right format. Use JPEG for photographs, or WebP for even smaller files if your host supports it. Keep PNG for logos, screenshots and anything with transparency. Never upload a camera original straight from your phone: a 6,000-pixel-wide file is far more than any screen needs. Resize to about 2,000 pixels on the long edge, which is plenty even for a full-screen lightbox view.
Second, compress the files. A free tool such as TinyPNG or Squoosh can cut a photo's size in half with no visible loss. Aim for each image to be under 200 KB where you can. Ten images at 2 MB each will make a page crawl; ten at 150 KB each will load quickly.
Third, name the files like a human. "lisbon-tram-28.jpg" tells you — and Google — what is in the picture. "IMG_4821.jpg" tells nobody anything. Rename before you upload, because WordPress keeps the filename you give it.
Fourth, think about consistency. Photos taken in different light, at different sizes and with different crops look messy side by side. If you can, use photos from the same shoot, crop them to the same ratio, and keep the style similar. A gallery of consistent images looks like a portfolio; a gallery of random ones looks like a camera roll.
Method 1: The Built-in Gallery Block
The WordPress Gallery block has come with every WordPress site since version 5.0, so there is nothing to install. It suits a handful of photos on a page or a post, and it takes about two minutes.
Open the post or page where the gallery should appear. Click the plus button at the top left, type "gallery", and pick the Gallery block. You can also type "/gallery" on an empty line and press Enter.
You can add images three ways: upload files from your computer, drag files onto the block, or pick photos already in your Media Library. If you use the Media Library, click the images you want, then click "Create a new gallery". Drag the images into the order you want, and click "Insert gallery".
Once the gallery is in place, select it to see the settings in the sidebar on the right. You can set the number of columns — three or four suits most photos — choose whether images are cropped to the same size, decide what each image links to, and pick the image size. Turn on the lightbox setting if your theme supports it, so clicking a photo opens it large.
Add a caption to individual images by clicking on one and typing in the caption field, and write alt text for each image in the sidebar. Alt text is one plain sentence about what the photo shows. It helps screen readers describe the image, and it helps the image appear in image search. Then save or publish the page, and check the gallery on a phone as well as a laptop — most of your visitors will see it on a phone.
The built-in block has limits. You cannot control the spacing between images precisely, and there are no filters, no masonry layouts and no albums. For a simple grid on a page, that is fine. For a portfolio that needs more, use a plugin.
Method 2: A Gallery Plugin
A dedicated gallery plugin gives you more layouts, more control over the lightbox, and galleries you can place on any page. Two well-known free options are Modula and Envira Gallery, and both follow the same pattern.
Install and activate the plugin from Plugins, then Add New, in your dashboard. The plugin adds its own menu item, usually under its own name. Open it and click Add New to create a gallery. Upload or select your photos, drag them into order, add titles and captions, and choose a layout: grid, masonry, or justified, depending on how you want the images to sit together.
Most gallery plugins let you set the lightbox behaviour — what happens when a visitor clicks a photo — including captions, navigation arrows and social sharing buttons. Some also offer filters, so visitors can sort a large gallery by category, and albums, so you can group several galleries under one heading.
When the gallery is ready, the plugin gives you a shortcode or a block you can place on any page or post. Paste it where you want the gallery to appear, preview the page, and check the result on a phone. A plugin gallery is heavier than the built-in block, so keep the number of images per page sensible — twenty photos is usually plenty for one gallery.
Only install one gallery plugin. Two gallery plugins on the same site will fight over the same job, slow the site down, and confuse anyone who has to edit a gallery later.
Captions, Alt Text and Titles — Three Different Jobs
It is easy to blur captions, alt text and titles, because all three describe the photo. They do different work, and each one is worth writing properly.
Alt text is for people who cannot see the image and for search engines. Write one plain sentence describing what is in the photo: "Oak dining table with six chairs in a bright kitchen". Do not stuff keywords into it, and do not leave it empty — an empty alt attribute tells a screen reader the image is decorative, which a product photo is not.
A caption is shown under the image to visitors. Use it for information a visitor would want: the product name, the price, the location, the date. Keep it short, one line where possible.
The title is the name of the media file in your library. Give it a sensible name when you upload — the same human-readable name you gave the file — so you can find the image again later. Nobody sees the title on the page, but a tidy media library saves time every time you build a gallery.
Keep Galleries Fast
A gallery page with twenty uncompressed photos can take ten seconds to load, and most visitors will leave before it finishes. Speed is part of the gallery, not an afterthought.
Resize before you upload, compress every file, and use the image size setting in the gallery so WordPress serves a sensibly sized file rather than the original. Many hosts and plugins also add lazy loading, which means images below the fold only load when the visitor scrolls to them — check that yours is on.
Also check the gallery after you publish. Open the page on a phone, on a slow connection if you can, and count how long it takes before the photos appear. If it feels slow, remove the weakest photos rather than adding more. A gallery of eight strong photos will always beat a gallery of twenty average ones.
Where Galleries Work Best
Galleries work best where the photos are the point: a portfolio page, a before-and-after page, a product range, a gallery of a recent event or project. They work less well as decoration on a page that is mostly text — there, one or two well-chosen images are enough.
Place the gallery where a visitor will actually look. On a services page, put a small gallery after the first paragraph, once the visitor understands what you do and wants proof. On a product page, put it near the top, because the photos are what the visitor came for. And link the gallery page from your menu or your homepage if the photos are a real selling point for your business.
If you are also choosing the structure your gallery will sit on, read our guide to choosing a WordPress theme for a small business website — the theme controls your fonts, spacing and layout, and a gallery only looks its best when the rest of the page is calm and consistent.
Common Gallery Mistakes
The most common mistake is uploading camera originals and wondering why the page is slow. The second is a gallery with no captions or alt text, which makes the photos useless to anyone who cannot see them and invisible to image search. The third is too many photos: a gallery of fifty images is a chore, not a showcase. Edit hard, and keep only the photos that make the business look good.
Another mistake is mixing very different photos in one gallery — a product shot, a team photo, a screenshot and a stock photo — which makes the grid look accidental. Group similar photos together, and give each group its own gallery if you need to.
The Bottom Line
A WordPress photo gallery is a two-minute job with the built-in block, and a ten-minute job with a plugin when you need more. The work that matters is before you upload: resize and compress the photos, name them properly, and choose only the strong ones. Do that, write a caption and alt text for each, and check the result on a phone. Your visitors will see the work, not the loading spinner.