For those of you that don’t like to keep installing plugins for all sorts of stuff, you’ll be happy to know that WordPress has a built-in image gallery feature!
The gallery in WordPress is pretty simple, nothing fancy, but it gets the job done, and in this post, you’ll see it in action!
How to create a gallery in WordPress
So, if you are reading this post, I assume you already know how to upload images in WordPress. Therefore, I’ll start the tutorial with the images already uploaded and ready to be used.
Make sure that you optimize the images before and after uploading them.
Now, in order to create an image gallery in WordPress, you need to:
1. Click the Add Media button.
2. Click the Create Gallery link found on the left side.
3. Select the images that you want to add into the WordPress gallery by clicking on them while holding down the CTRL or CMD button on your keyboard.
4. Clicking the Create new gallery button found at the bottom-right.
5. A new window will appear, where you can reorder your images, reverse their order, delete an image, add captions to them, and also configure the Gallery Settings.
At the gallery settings, you have:
- Link To – choose where you want the images to link to when a user clicks on them:
- Media File – displays the image itself;
- Attachment Page – displays the attachment page of the image;
- None – clicking on them does nothing.
- Columns – speaks for itself;
- Random Order – the gallery will display the images randomly every time the page is loaded;
- Size – choose the size of the images within the gallery:
- Full size.
6. After configuring the gallery’s settings, insert the gallery by clicking the Insert gallery button.
And this is how it looks on the front-end:
Pretty cool, right?
How to edit the WordPress gallery
If you want to edit the gallery after you inserted it, switch to the Visual editor, if you were not working on it already, click on the gallery, and then click the Edit icon.
If you prefer using the Text editor instead, like I do, or you have the Visual editor disabled, then you can edit the shortcode, if you know your way around with them.
Here’s a guide on the gallery shortcode.
That’s a wrap
Hope the tutorial was comprehensive enough, and you understood how to create a gallery in WordPress.
If you have any questions or thoughts, drop a comment, contact us or message us on Facebook.
If you want to start your own WordPress blog, or need a website for your business, our WordPress installation service is at your disposal!
You can also purchase a ready-made WordPress website with hosting and support included!