WordPress.org

Support

Support » Plugins and Hacks » WP-Cycle » [Plugin: WP-Cycle] Randomize suggestion

[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://wordpress.org/extend/plugins/wp-cycle/

  • The topic ‘[Plugin: WP-Cycle] Randomize suggestion’ is closed to new replies.
Skip to toolbar