[Plugin: Meteor Slides] posts_per_page not working
-
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Meteor Slides] posts_per_page not working’ is closed to new replies.