Title: query_posts doesn&#8217;t get new posts
Last modified: August 19, 2016

---

# query_posts doesn’t get new posts

 *  [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * (@sccr410)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/query_posts-doesnt-get-new-posts/)
 * I am trying to use the query_posts function after a page item to get the 5 latest
   posts. query_posts doesn’t seem to do anything, I only get the data for the page
   again. The $posts value does not change like it should.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * (@sccr410)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/query_posts-doesnt-get-new-posts/#post-789856)
 * Resolved: need to use like this:
 * $posts = query_posts(…);

Viewing 1 replies (of 1 total)

The topic ‘query_posts doesn’t get new 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/)
 * 1 reply
 * 1 participant
 * Last reply from: [Derek Ashauer](https://wordpress.org/support/users/sccr410/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/query_posts-doesnt-get-new-posts/#post-789856)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
