removing sticky loop
This commit is contained in:
parent
0400c1dca4
commit
84e54c74b6
|
@ -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();
|
||||
?>
|
||||
|
||||
|
|
Reference in New Issue