You can sort images in a WordPress gallery with Modula in a few clicks. Sort them by date, by title, or at random. You can also drag each photo to the exact place you want.
Note: The sorting options need Modula Pro.
Sort the images in your gallery
- Go to Modula → Galleries and open your gallery.
-
Click Sort in the toolbar above the preview. The button shows the order you use now, for example Sort · Custom order.

- Under Sort by, pick an option. The preview changes right away, and the editor saves your choice.
- Next to New images go to the, pick Start or End. This decides where new images appear when you add them later.
What each Sort by option does
Each option below puts your images in a different order. Pick the one that fits your gallery.
- Drag and drop reorder: You choose the order yourself. The Reorder window opens. Drag each photo to its new place, or use the arrows. Then click Save order. To open this window again, click Open drag-and-drop reorder at the bottom of the Sort menu.
- Date created — newest first and Date created — oldest first: Sorts by the date you uploaded each image to your Media Library.
- Date modified — most recent first and Date modified — most recent last: Sorts by the date each image was last edited in your Media Library.
- Title A–Z and Title Z–A: Sorts by image title, in alphabetical order.
- Random: Shuffles the images one time. Modula saves that order. Every visitor sees the same order until you sort again.

Show a different order on every visit
Modula can also shuffle your images each time the page loads. To do this, turn on Randomize images in the Layout section of the gallery editor.
This is not the same as Random under Sort by. That option shuffles the images only once.

Note: The random order works for Masonry, Uniform grid, Fit grid, Justified grid, Creative, Polaroid and Parallax galleries. It does not work in galleries with content blocks. The editor preview keeps your saved order, so open the live page to see the shuffle.