fixing loop paging
This commit is contained in:
parent
e20c26d886
commit
0400c1dca4
|
@ -26,7 +26,8 @@ get_header(); ?>
|
|||
<main id="main" class="site-main" role="main">
|
||||
|
||||
<?php
|
||||
$the_query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );
|
||||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
||||
$the_query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ), 'paged' => $paged ) );
|
||||
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
|
||||
?>
|
||||
|
||||
|
|
Reference in New Issue