Only the first slide is being shown
-
I’ve added two slides, but the slider behaved like there was only one. I fixed by changing a line in the responsive_slider() function from:
$slides = new WP_Query( array( ‘post_type’ => ‘slides’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’) );
to:
$slides = new WP_Query( array( ‘post_type’ => ‘slides’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’, ‘nopaging’ => 1 ) );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Only the first slide is being shown’ is closed to new replies.