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://www.ads-software.com/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://www.ads-software.com/support/topic/wp_query-orderby-random-not-working
and:
https://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