Title: Random gallery pagination bug
Last modified: May 1, 2019

---

# Random gallery pagination bug

 *  Resolved [Cartucho](https://wordpress.org/support/users/wolfaustral/)
 * (@wolfaustral)
 * [7 years ago](https://wordpress.org/support/topic/random-gallery-pagination-bug/)
 * Hello! First of all thanks for the plugin, it’s very good.
 * I found an incompatibility between this options:
    gallery_orderby=”rand” gallery_per_page
   =”xx”
 * If you create a random gallery and enable pagination, every time you select a
   page you will see new random videos. **Even if it is a page that you have previously
   seen**, such as page 1, new random videos are served.
 * Example: you have six videos (A, B, C, D, E, F) on two pages. The first page 
   randomly shows A, E and F. Then the second page should show B, C and D … but 
   do not. You can find any video in the second page, and if you go back to the 
   first page you will find a new combination.
 * I do not know how hard it is to fix it, but it’s not a critical error for me (
   I’ll use the order by date for now). I just wanted to report it.
 * Regards!

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

 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [7 years ago](https://wordpress.org/support/topic/random-gallery-pagination-bug/#post-11485708)
 * The plugin does a random query of available videos every time you switch pages
   in the gallery. I guess there’s no case to be made for doing that. What you really
   want is for the gallery order to be randomized on web page load and to remain
   static until the page is reloaded. I created an [issue on GitHub](https://github.com/kylegilman/video-embed-thumbnail-generator/issues/441)
   so you can track my progress on this.
 *  Plugin Author [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/random-gallery-pagination-bug/#post-11581743)
 * The 4.6.25 update released today should fix random gallery order with pagination.
 *  Thread Starter [Cartucho](https://wordpress.org/support/users/wolfaustral/)
 * (@wolfaustral)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/random-gallery-pagination-bug/#post-11601375)
 * Great, I recently updated the plugin and now is working correctly.
 * Thanks!

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

The topic ‘Random gallery pagination bug’ is closed to new replies.

 * ![](https://ps.w.org/video-embed-thumbnail-generator/assets/icon.svg?rev=2965979)
 * [Videopack](https://wordpress.org/plugins/video-embed-thumbnail-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-embed-thumbnail-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-embed-thumbnail-generator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Cartucho](https://wordpress.org/support/users/wolfaustral/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/random-gallery-pagination-bug/#post-11601375)
 * Status: resolved