wp-pagenavi shows only first page

here is my code:
$args = array( ‘post_type’ => ‘Sliderpost’, ‘posts_per_page’ => 5);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo ”;
the_content();
echo ”;
endwhile; ?>

‘multipart’ ) ); ?>

Read more here: wp-pagenavi shows only first page

Leave a Reply

Your email address will not be published. Required fields are marked *