Digital Photography Tips, Tutorials and Resources
Do you want to sort your image galleries inside photo albums? Sometimes you may need to control how your image galleries are displayed within albums (e.g. by title, publish date, alt text, etc.). In this article, we will share how to sort image galleries in WordPress albums.
You may be using photo albums to organize multiple image galleries on your WordPress site. You can choose what order those galleries are displayed by using the Envira Gallery plugin.
To sort image galleries in WordPress albums, you’ll need to follow these 5 steps:
- Step 1. Install and activate Envira Gallery plugin
- Step 2. Create your image galleries in Envira
- Step 3. Create an album and add your galleries
- Step 4. Change your settings to sort image galleries
- Step 5. Display your sorted album in WordPress
Ready to get started? Let’s go!
Step 1: Install and Activate Envira Gallery Plugin
First thing you need to do is install and activate Envira Gallery WordPress plugin.
For help with this step, check out our guide on how to install Envira.
Step 2: Create Your Image Galleries in Envira
Upon activating Envira, you can go to Envira Gallery » Add New to add a new image gallery in WordPress.
Go ahead and add your images into the Native Envira Gallery section.
After adding your images, you’ll need to hit the Publish button to save your changes. Then go ahead and repeat this process to create as many image galleries as you need.
For more help with this step, check out our guide on how to create an image gallery with thumbnails in WordPress.
Step 3: Create an Album and Add Your Galleries
Next, you’ll need to create an album to organize your galleries. Go to Envira Gallery » Albums from your WordPress backend, and click on the Add New button.
Then, simply add a title and drop your image galleries.
To learn more about album settings, you should check out our guide on how to create a photo album in WordPress.
Step 4: Change Your Settings to Sort Image Galleries
Now it’s time to sort your image galleries. In the Config tab, scroll down to Sorting and select your preference from the dropdown menu. You can choose from Random, Title, Caption, Alt Text, or Publish Date.
(I chose Title from the sorting dropdown, so my image galleries will be sorted by their names in alphabetical order.)
Step 5: Display Your Sorted Album in WordPress
Once you are happy with your settings, go ahead and hit the Publish button. Then copy the shortcode from the Envira Album Code widget.
Next, go to Posts/Pages » Add New or edit an existing post/page. In the visual editor, go ahead and paste the shortcode.
Make sure to click on the Update button to save your changes.
That’s all. We hope this article has helped you to learn how to sort image galleries in WordPress albums. To learn how to sort the images themselves within your individual image galleries, check out our guide on how to sort images in WordPress galleries.