Title: [Plugin: WP-Cycle] Randomize suggestion
Last modified: August 19, 2016

---

# [Plugin: WP-Cycle] Randomize suggestion

 *  [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-cycle-randomize-suggestion/)
 * The ability to randomize order the images are shown 🙂
 * Line 20:
 *     ```
       $wp_cycle_defaults = apply_filters('wp_cycle_defaults', array(
           'rotate' => 1,
           'effect' => 'fade',
           'delay' => 3,
           'duration' => 1,
           'img_width' => 300,
           'img_height' => 200,
           'div' => 'rotator',
           'randomize' => 0
       ));
       ```
   
 * Around 347
 *     ```
       <tr valign="top"><th scope="row">Randomize Images</th>
               <td><input name="wp_cycle_settings[randomize]" type="checkbox" value="1" <?php checked('1', $options['randomize']); ?> /> <label for="wp_cycle_settings[randomize]">Check this box if you want randomize the order the images are displayed.</td>
               </tr>
       ```
   
 * Around 421
 * `if ( $wp_cycle_settings['randomize'] == 1) shuffle($wp_cycle_images);`
 * Full modified code at [http://pastie.org/1221461](http://pastie.org/1221461)
 * [http://wordpress.org/extend/plugins/wp-cycle/](http://wordpress.org/extend/plugins/wp-cycle/)

The topic ‘[Plugin: WP-Cycle] Randomize suggestion’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-cycle-randomize-suggestion/)
 * Status: not a support question