Title: [Plugin: WordPress Gallery Plugin] Random Order
Last modified: August 20, 2016

---

# [Plugin: WordPress Gallery Plugin] Random Order

 *  [mrdavidingram](https://wordpress.org/support/users/mrdavidingram/)
 * (@mrdavidingram)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-gallery-plugin-random-order/)
 * Hi,
 * Is there a way to randomize the display order of the images? I’ve tried using
   the shortcode mark-up for the stock WordPress gallery, but this doesn’t work.
 * Any help would be greatly appreciated.
 * Thanks
 * David
 * [http://wordpress.org/extend/plugins/wordpress-gallery-plugin/](http://wordpress.org/extend/plugins/wordpress-gallery-plugin/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrdavidingram](https://wordpress.org/support/users/mrdavidingram/)
 * (@mrdavidingram)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-gallery-plugin-random-order/#post-2779844)
 * I’ve managed to fix this by tweaking the plugin core file.
 * You need to go into the plugin editor (Plugins > Editor > WordPress Gallery Plugin)
 * On the default page (wordpress-gallery-plugin/wp-gallery-plugin.php)you need 
   to change the line in the $args array:
 * `'orderby' => 'menu_order', 'order' => 'ASC'`
 * to
 * `'orderby' => 'rand', 'order' => 'ASC'`
 * Thanks
 * David

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Gallery Plugin] Random Order’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-gallery-plugin.svg)
 * [Wordpress Gallery Plugin](https://wordpress.org/plugins/wordpress-gallery-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-gallery-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-gallery-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-gallery-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-gallery-plugin/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [mrdavidingram](https://wordpress.org/support/users/mrdavidingram/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-gallery-plugin-random-order/#post-2779844)
 * Status: not resolved