removing sticky loop

This commit is contained in:
Holger Könemann 2015-08-12 13:31:06 +02:00
parent 0400c1dca4
commit 84e54c74b6
1 changed files with 1 additions and 3 deletions

View File

@ -15,8 +15,6 @@ get_header(); ?>
<?php get_template_part('hero'); ?>
<?php get_template_part('sticky'); ?>
<div class="wrapper" id="wrapper-index">
<div class="container">
@ -27,7 +25,7 @@ get_header(); ?>
<?php
$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 ) );
$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();
?>