Posted By

gd6d on 03/19/10


Tagged

wordpress loop sticky posts


Versions (?)

Completely exclude Sticky posts from the Loop


 / Published in: PHP
 

URL: http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+wpbeginner+%28Wordpress+for+Beginners%29

  1. <?php
  2. query_posts(array("post__not_in" =>get_option("sticky_posts")));
  3. if ( have_posts() ) : while ( have_posts() ) : the_post();
  4. ?>

Report this snippet  

You need to login to post a comment.