• Is the only way to use sticky posts by having a ‘posts’ page without a custom query?

    For example, I have a news feed but it consists of two loops (starting with this one to style the first post differently)
    <?php query_posts('post_type=post&posts_per_page=1&cat=2'); ?>

    Then we have this loop to have a micro-feed of all but the latest post:
    <?php query_posts('post_type=post&posts_per_page=3&cat=2&offset=1'); ?>

    But if we set one of the posts as a sticky, we get *two* posts showing up in the first loop (even though posts_per_page is set to 1) and then that same post shows up again in the second loop.

    What I’d like, in these circumstances, is for the sticky post to be the only post showing in the first loop… and then for that same post to be ignored in the second loop due to the offset parameter

    Is this possible?

  • The topic ‘Stickies and query_posts()’ is closed to new replies.