0

A client of mine wishes to not have to sort images uploaded into a post gallery, but instead rely on its filename for sorting (e.g. "01_sample.jpg", "02_sample.jpg"). This would save a lot of time for the client, and I'm wondering if this is possible to achieve using WP 3.5+ and the recent changes to Add Media?

1 Answer 1

2

When you or the client add the gallery shortcode, you can add an "orderyby" option to specify the order of the images. Per the Codex page on the gallery shortcode:

[gallery ids="729,732,731,720" orderby="title"]

... will do what you're wanting.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.