• 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.