resetting loop
This commit is contained in:
parent
84e54c74b6
commit
7373f4d233
|
@ -23,11 +23,9 @@ get_header(); ?>
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php
|
<?php /* Start the Loop */ ?>
|
||||||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
|
||||||
$the_query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Include the Post-Format-specific template for the content.
|
/* Include the Post-Format-specific template for the content.
|
||||||
|
|
Reference in New Issue