Title: Long galleries
Last modified: February 16, 2026

---

# Long galleries

 *  Resolved [mbsharp](https://wordpress.org/support/users/mbsharp/)
 * (@mbsharp)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/long-galleries/)
 * Version 4.0.5
 * When a number of images are loaded to a gallery, then the order after upload 
   is never the same as the order in the source. Possibly multiple images uploaded
   interleaved. If a particular sort order is required, that means the gallery must
   be sorted after uploading.
 * If the number of images is >50 (page size), they can be uploaded in blocks, but
   now each new set is loaded in front of existing images and not following. So 
   it is possible to load blocks in reverse.
 * But after all these possible workarounds, it is impossible to sort a long gallery.
   Images may be sortable within blocks of 50, but not between blocks. Even with
   the hack to use the legacy admin which allows viewing of a whole gallery for 
   sorting, some images seem to be locked into groups where the order cannot be 
   changed.
 * Many others have commented/complained about v4. It seems to have been a case 
   of enforcing ‘form’ without considering or checking ‘function’.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [mbsharp](https://wordpress.org/support/users/mbsharp/)
 * (@mbsharp)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/long-galleries/#post-18823639)
 * And in addition, when viewing the whole gallery, using the option to sort by 
   filename says it has worked but it hasn’t. Likewise using the option to sort 
   by alt text doesn’t work either.
 * Wen I have a long gallery I pre-arrange that the filenames are ascending and 
   alt text matches the filenames. So, not happy about this.
 *  Thread Starter [mbsharp](https://wordpress.org/support/users/mbsharp/)
 * (@mbsharp)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/long-galleries/#post-18824480)
 * Update:
 * The admin ‘hack’ reinstates ‘Nextgen’ as an option in the dashboard under ‘Imagely’.
   If galleries are managed via ‘Nextgen’, then sorting works OK, but sorting a 
   gallery via ‘Imagely’ does not. That’s a bit sad and hopefully the ‘Nextgen’ 
   option isn’t removed at least before ‘Imagely’ has been made to work properly.
 * Managing under ‘Nextgen’ also restores list view in galleries as has been requested
   by several others.
 *  Plugin Support [Mihai](https://wordpress.org/support/users/mceban/)
 * (@mceban)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/long-galleries/#post-18877194)
 * Hi [@mbsharp](https://wordpress.org/support/users/mbsharp/) ,
 * Thank you for reaching out and for your detailed fedback.
 * The change to pagination was intended to enhance performance and resolve timeout
   issues when loading large galleries as that was previously causing issues with
   the galleries completely failing to load within the new UI.
   Although there isn’t
   a current built-in feature to adjust the number of images per page in the new
   gallery management UI, it’s certainly a potential feature for future development.
 * If you’re open to a custom solution, you can use the following PHP code to set
   a larger number of displayed images:
 *     ```wp-block-code
       $options = get_option('ngg_options'); $options['item_details_per_page'] = 100; update_option('ngg_options', $options);
       ```
   
 * You can replace **100 **with any number you prefer. Please note that setting 
   a very high number might impact performance.
 * To add this code safely, I recommend using the **WPCode **plugin, which helps
   maintain security and manageability.
 * Please feel free to give it a try and let me know if that’ll allow you sort the
   gallery images within the new UI with the current Imagely Gallery version.
 * Thanks again for your feedback.
 * Please feel free to share any other thoughts or suggestions you might have.
 * Best regards,
 *  Plugin Support [Michelle D.](https://wordpress.org/support/users/devmich/)
 * (@devmich)
 * [1 day, 20 hours ago](https://wordpress.org/support/topic/long-galleries/#post-18955666)
 * Hi [@mbsharp](https://wordpress.org/support/users/mbsharp/),
 * For galleries with more than 50 images, you can now drag and drop an image to
   a different page while editing a gallery. Please update your plugin to the latest
   version for the new feature to apply.
 * If you had previously used a custom code snippet to display more images per page
   as a workaround, we recommend running the snippet once more to change the `item_details_per_page`
   option back to the default number of 50 for optimal performance.
 * If you’re still experiencing issues after updating, please reach out to us at
   [https://www.imagely.com/contact/](https://www.imagely.com/contact/) and we’ll
   be happy to take a closer look at your setup directly.
 * Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flong-galleries%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Michelle D.](https://wordpress.org/support/users/devmich/)
 * Last activity: [1 day, 20 hours ago](https://wordpress.org/support/topic/long-galleries/#post-18955666)
 * Status: resolved