• Resolved Technoh

    (@technoh)


    Using WordPress 3.2.1 and a few other plugins beside meteor_slides, I realized that the ‘posts_per_page’ option of the WP_Query call in meteor-slideshow.php (line 21) was not used. I was always getting only 10 slides per slideshow, in all of my slideshows.

    I had to change the call to the following:

    $loop = new WP_Query( array(
    
    		'post_type'      => 'slide',
    		'posts_per_page' => intval($options['slideshow_quantity']),
    		'nopaging' => true,
    		'slideshow'      => $slideshow
    
    	) );
    
    	$loop->set( 'posts_per_page', intval($options['slideshow_quantity']) );

    Both the nopaging option and the subsequent call to the set method were necessary for this to work properly.

    Just thought I’d post my solution in case someone runs into a similar issue.

    http://ww.wp.xz.cn/extend/plugins/meteor-slides/

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

    (@jleuze)

    That’s strange, there must be another loop that is overriding it or something. Thanks for sharing your workaround!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Meteor Slides] posts_per_page not working’ is closed to new replies.