WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cycle
easily randomize the slideshow (2 posts)

  1. JMC Creative
    Member
    Posted 3 years ago #

    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.

  2. crismdq
    Member
    Posted 3 years ago #

    And if you want to show the latest added image first, use this line instead shouffle.

    $wp_cycle_images = array_reverse($wp_cycle_images);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags