Title: Reset get_posts()
Last modified: August 18, 2016

---

# Reset get_posts()

 *  [Jong](https://wordpress.org/support/users/jong/)
 * (@jong)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/reset-get_posts/)
 * Hi.
 * I have a template for a Page, which displays posts via get_posts() from a certain
   category. The thing is though, if there are no posts, I want to display the the_content()
   from the Page instead.
 * My problem is, when using get_posts(), it overrides (a qualified guess) the default
   query for the Page, why have_posts() is left empty.
 * How do I reset the query back to default?

The topic ‘Reset get_posts()’ is closed to new replies.

## Tags

 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)
 * [have_posts()](https://wordpress.org/support/topic-tag/have_posts/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jong](https://wordpress.org/support/users/jong/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/reset-get_posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
