• Hi, I have a website where the first two posts are displayed more prominently on the website, by default these are the two latest posts, or the two posts that are stickied.

    I want to run featured posts in those bigger spaces, but by sticking posts it’s duplicating them and then displaying them again directly underneath.

    Here is my home.php

    http://pastebin.com/MpdGhiHf

Viewing 1 replies (of 1 total)
  • Thread Starter craven222

    (@craven222)

    I added the bit of code

    <?php
    query_posts(array("post__not_in" =>get_option("sticky_posts")));
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    ?>

    to line 49.

    This fixes the sticky duplication problem, however whenever I make new post, the new post is displayed twice, once at the larger value for the stickied posts (div.post.two) while the other takes values from (div.post.one)

Viewing 1 replies (of 1 total)
  • The topic ‘Excluding stickied posts from the second loop?’ is closed to new replies.