Answer the question
In order to leave comments, you need to log in
How to add pagination before posts_per_page loop in wordpress?
News is displayed on the site using a cycle with settings, including the number of pages to display (posts_per_page).
$wp_query = new WP_Query();
$wp_query->query($args);
while ( have_posts() ) : the_post();
get_template_part( 'content', 'newsmini' );
endwhile;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question