WordPress.org

Ready to get started?Download WordPress

Forums

Responsive Slider
Randomise the slides? (3 posts)

  1. bugsland
    Member
    Posted 1 year ago #

    Hi,

    Great plugin :)
    Is it possible to randomise the order in which the slides are displayed?

    Thanks,
    B.

    http://wordpress.org/extend/plugins/responsive-slider/

  2. gavinr
    Member
    Posted 1 year ago #

    I would really like an option to randomize the slides too! Let me know if I can help with the development.

    Thanks,
    Gavin

  3. Sh0rty234
    Member
    Posted 1 year ago #

    Hey Guys,

    I'm trying to randomise the responsive slider output too, but all efforts haven't had any effect yet.

    I tried the following solutions:

    If you find the function 'responsive_slider()' in the file responsive-slider.php there is a line like this:

    $slides = new WP_Query( array( 'post_type' => 'slides', 'order' => 'ASC', 'orderby' => 'menu_order' ) );

    Change the 'orderby' to 'rand'

    from:
    https://wordpress.org/support/topic/random

    remove_all_filters('posts_orderby');
     $args = array(
        'orderby' => 'rand',
        'post_type' => 'testimonial',
    	'posts_per_page' => 1
    );
    // The Query
    $the_query = new WP_Query( $args );

    from:
    https://wordpress.org/support/topic/wp_query-orderby-random-not-working

    and:
    http://perishablepress.com/display-random-posts-from-specific-tags-or-categories/comment-page-1/

    They all seem logical, but don't work.
    The Version of the responsive Slider alienWP plugin is 0.1.8 und wp is 3.5.1

    Has anyone an idea?
    Thanks a lot and best regards
    Daniel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.