WordPress.org

Support

Support » Plugins and Hacks » WP-Cycle » [Plugin: WP-Cycle] easily randomize the slideshow

[Plugin: WP-Cycle] easily randomize the slideshow

  • JMC Creative

    @jmc-creative

    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)
  • 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.
Skip to toolbar