Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

how-to-sort-images-in-wordpress-galleries

How to Sort Images in WordPress Galleries

by Waseem Abbas on Oct 6, 2016

Do you want to sort the photos in your image galleries? Sometimes you want to filter your images by title, filename, published date, etc. In this article, we will share how to sort images in WordPress galleries.

By default, WordPress does not allow you to sort images in galleries. However, you can sort your gallery images using Envira Gallery plugin. Lots of different filtering options are available in one simple dropdown menu, so it’s quick and easy to arrange your photos.

To sort images in WordPress galleries, you’ll need to follow these 4 steps:

  • Step 1. Install and activate Envira Gallery plugin
  • Step 2. Create an image gallery in Envira
  • Step 3. Edit gallery settings to sort images in WordPress
  • Step 4. Add your sorted image gallery to a post or page

Ready to get started? Let’s go!

Step 1: Install and Activate Envira Gallery Plugin

To begin with this tutorial, you need to install and activate Envira Gallery WordPress plugin.

Envira Gallery

If you need help with the installation, check out our guide on how to install Envira Gallery.

Step 2: Create an Image Gallery in Envira

Upon activating the plugin, you can go to Envira Gallery » Add New to add a new image gallery in WordPress.

Add New Gallery

Go ahead and add your images into the Native Envira Gallery section. (We’ll sort these photos in the next step.)

Add Images

After adding your images, you’ll need to hit the Publish button to save your changes. Copy the shortcode to your clipboard from the Envira Gallery Code widget– we’ll use this code to display our image gallery.

Copy Shortcode

For more help with this step, check out our guide on how to create an image gallery with thumbnails in WordPress.

Step 3: Edit Gallery Settings to Sort Images in WordPress

Next, it’s time to sort our images. After creating your new image gallery, go to the Config tab. In the Sorting dropdown, you can choose any one filter to sort your images. The options include random, published date, filename, title, caption, alt, and URL.

Sort Images in WordPress

(I chose Filename, so my images will be sorted alphabetically by their filename.)

Step 4: Add Your Sorted Image Gallery to a Post or Page

To add your sorted image gallery to a post or page, you can go to Posts/Pages » Add New or edit an existing post.

Now, simply paste the shortcode that you copied in the previous step into the visual editor. Make sure to hit the Update button to save your changes.

Add Shortcode

That’s it! Now your sorted image gallery is live on your website.

We hope this article has helped you to learn how to sort images in WordPress galleries. You may also want to check out our guide on how to add pagination in WordPress image galleries.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get Envira Gallery free?

Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.

Comments

    1. Hey Casey, this option can be opened with Envira Basic plan. The Basic plan will also give you tons of other editing options for your image galleries, and a few addons too. 🙂

  1. I am using Envira Gallery v1.8.5.6 and the Sorting option is missing from the Configuration tab. Is it still possible to sort in v1.8.5.6?

  2. I also do not have a dropdown for sorting…
    Above Gutter Width and Gallery Theme I have Crop Position then size/dimensions. I have the 2nd to highest paid plan too, so I should certainly have this option. Is “Sorting” turned off if something else is turned on? Why would the only other comments on here also state that they don’t have Sorting either?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.