Title: Slideshow Random Order
Last modified: August 21, 2016

---

# Slideshow Random Order

 *  Resolved [agaldesign](https://wordpress.org/support/users/agaldesign/)
 * (@agaldesign)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/slideshow-random-order/)
 * I would like to add a slideshow pulling from one gallery displaying images in
   a random order. I have tried using the shortcode:
    [ngg_images gallery_ids=”2″
   display_type=”photocrati-nextgen_basic_slideshow” source=”random”] which does
   not work.
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/slideshow-random-order/#post-5129010)
 * [@agaldesign](https://wordpress.org/support/users/agaldesign/) – The `source`
   parameter is not correct for this idea …
 * … try something along the lines of the following:
    `[ngg_images gallery_ids="
   2" display_type="photocrati-nextgen_basic_slideshow" sort_by="rand()"]`
 * This may or may not work depending on your hosting service but it is all we currently
   have to offer that matches what you are describing.
 * Thanks!
 * – Cais.
 *  Thread Starter [agaldesign](https://wordpress.org/support/users/agaldesign/)
 * (@agaldesign)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/slideshow-random-order/#post-5129022)
 * This does not work.
 * I am able to get all the images uploaded to Nextgen rotating randomly by using
   this [ngg_images source=”random” display_type=”photocrati-nextgen_basic_slideshow”].
 * However, this is not going to work as I have multiple galleries throughout the
   site.
 * This was a feature that was available in earlier versions with a different shortcode.
   Do you think you will bring it back?
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/slideshow-random-order/#post-5129024)
 * [@agaldesign](https://wordpress.org/support/users/agaldesign/) – My apologies,
   I made an error in the parameters … try the following:
 * `[ngg_images gallery_ids="2" display_type="photocrati-nextgen_basic_slideshow"
   order_by="rand()"]`
 * Note, it is `order_by` and not `sort_by` … and this does work as I just tested
   it as well.
 * – Cais.

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

The topic ‘Slideshow Random Order’ is closed to new replies.

 * ![](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/)

 * 3 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/slideshow-random-order/#post-5129024)
 * Status: resolved