Title: [Plugin: WP-Cycle] easily randomize the slideshow
Last modified: August 19, 2016

---

# [Plugin: WP-Cycle] easily randomize the slideshow

 *  [JMC Creative](https://wordpress.org/support/users/jmc-creative/)
 * (@jmc-creative)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-cycle-easily-randomize-the-slideshow/)
 * Until Nathan gets around to adding “shuffle images” as an option, you can very
   easily randomize the slideshow. Open the **wp-cycle.php** file and scroll to 
   line 414. On the line before
    `foreach((array)$wp_cycle_images as $image => $
   data) {` add the new line: `shuffle($wp_cycle_images);`
 * Works like a charm.

Viewing 1 replies (of 1 total)

 *  [crismdq](https://wordpress.org/support/users/crismdq/)
 * (@crismdq)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-cycle-easily-randomize-the-slideshow/#post-1802393)
 * And if you want to show the latest added image first, use this line instead shouffle.
 *     ```
       $wp_cycle_images = array_reverse($wp_cycle_images);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Cycle] easily randomize the slideshow’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cycle.svg)
 * [WP-Cycle](https://wordpress.org/plugins/wp-cycle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cycle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cycle/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cycle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cycle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cycle/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [crismdq](https://wordpress.org/support/users/crismdq/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-cycle-easily-randomize-the-slideshow/#post-1802393)
 * Status: not resolved