• Resolved devlora

    (@devlora)


    Hi,
    first, sorry if this was already answer did not found it…

    I really enjoy your plugin meteor slide, I am wondering is there a build in function that could allow me to do this :

    I have a lot of slides, and i would like to load only X at the times (depending on configuration). The only reason why I wan’t to do this, is for a faster page loading, and also, I think it’s rare that user will look at all of them.
    So I would like to load from all the slides randomly X slide. I dont wan’t a random order (wich i don’t mind at all) but loading X from the lot. So before modifyng your plugin, Is there any chances you have implement that?

    thank you verry much

    https://ww.wp.xz.cn/plugins/meteor-slides/

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

    (@jleuze)

    Hi, it sounds like instead of loading the 5 latest slides and randomly ordering those, you want to load 5 random slides from all the slides, is that right?

    You can do this with a custom slideshow template, editing the slideshow query:

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

    To look like this:

    $meteor_loop     = new WP_Query( array(
    
    		'post_type'      => 'slide',
    		'slideshow'      => $slideshow,
    		'posts_per_page' => $meteor_options['slideshow_quantity'],
    		'orderby'        => 'rand'
    
    	) ); ?>
Viewing 1 replies (of 1 total)

The topic ‘random image’ is closed to new replies.