In my WordPress site, I made a custom page template, which contained a custom query [using WP_Query()
]. With that query, I can perfectly get the posts of a certain category. But I want to show the page contents along with the queried posts.
Thing will be like:
---------------------------
Page Heading
page contents
Queried Post Heading
queried post contents
---------------------------
- What can I do?
wp_reset_postdata()
for the rescue. Should be done after each custom query. – kaiser♦ Mar 11 '13 at 20:06