- Click Photo Gallery from the menu on the left of your WordPress dashboard.
- From the list under Photo Gallery, click Options, then click the Gallery Defaults tab.
- Sort your images from the drop-down menu under Order By.
- Click the Save button at the top right to save your settings. This will apply your selected option to every gallery that uses default options.
In order to apply this setting to a single specific gallery click the shortcode of the published gallery in your editor, uncheck the box next to Use Default Options, then follow step 3 and click Update.