Title: Stickies and query_posts()
Last modified: August 22, 2016

---

# Stickies and query_posts()

 *  anonymized-3854925
 * (@anonymized-3854925)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/stickies-and-query_posts/)
 * 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.

## Tags

 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)
 * [stickies](https://wordpress.org/support/topic-tag/stickies/)

 * 0 replies
 * 1 participant
 * Last reply from: anonymized-3854925
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/stickies-and-query_posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
