Support » Plugin: Meteor Slides » Random order with lot of images

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    The trick with that is that when you set it to random in the metadata, it randomizes that slides that are already loaded with JavaScript. To randomly load the slides into the slideshow, you have to use a custom slideshow template and edit the slides query and set the orderby to rand:
    http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Thanks Josh,
    I already have custom slideshow template on my theme, but I don´t know where do I have to place the code. I tried to do this:

    $meteor_loop     = new WP_Query( array(
    
    		'post_type'      => 'slide',
    		'slideshow'      => $slideshow,
    		'posts_per_page' => $meteor_options['slideshow_quantity']
    		'orderby' => 'rand'
    
    	) );

    but the slide is not showing at all

    Q41developer

    (@q41developer)

    Can anybody help me with this please?

    Q41developer

    (@q41developer)

    I just resolved. I forgot one coma. The correct code is:

    $meteor_loop     = new WP_Query( array(
    
    		'post_type'      => 'slide',
    		'slideshow'      => $slideshow,
    		'posts_per_page' => $meteor_options['slideshow_quantity'],
    		'orderby' 		 => 'rand'

    Plugin Author Josh Leuze

    (@jleuze)

    Sorry for the delay, glad to hear you got it working!

    Q41developer

    (@q41developer)

    Thanks very much Josh

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Random order with lot of images’ is closed to new replies.