resetting loop

This commit is contained in:
Holger Könemann 2015-08-12 13:36:02 +02:00
parent 84e54c74b6
commit 7373f4d233
1 changed files with 3 additions and 5 deletions

View File

@ -23,11 +23,9 @@ get_header(); ?>
<main id="main" class="site-main" role="main">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$the_query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.