Title: Unable to stick post when using query_posts
Last modified: August 19, 2016

---

# Unable to stick post when using query_posts

 *  [Michal z typeofweb.com](https://wordpress.org/support/users/lupinek/)
 * (@lupinek)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/unable-to-stick-post-when-using-query_posts/)
 * I use custom query to obtain my posts on the main page:
    `global $query_string;
   query_posts($query_string."&category_name=my_cat");` But in this case sticky 
   posts are not displayed first. How can I make it working?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/unable-to-stick-post-when-using-query_posts/#post-1735996)
 * [http://codex.wordpress.org/Function_Reference/query_posts#Sticky_Post_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Sticky_Post_Parameters)
 *  Thread Starter [Michal z typeofweb.com](https://wordpress.org/support/users/lupinek/)
 * (@lupinek)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/unable-to-stick-post-when-using-query_posts/#post-1736163)
 * Super but it doesn’t help me at all. If I’d needed link to codex I would have
   not posted here -.-‘
 * Any other ideas?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unable to stick post when using query_posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Michal z typeofweb.com](https://wordpress.org/support/users/lupinek/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/unable-to-stick-post-when-using-query_posts/#post-1736163)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
