Title: Missing reset post data after a loop
Last modified: November 19, 2019

---

# Missing reset post data after a loop

 *  [Khoi Pro](https://wordpress.org/support/users/khoipro/)
 * (@khoipro)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/missing-reset-post-data-after-a-loop/)
 * Hello,
 * Thanks for a great plugin. I’m a developer, and we found when placing a shortcode
   inside a standard page, it will clear all our data (which is below a shortcode).
 * When checking your code, I found:
 * **shortcode/shortcode.php**
 *     ```
       while ($query->have_posts()) : $query->the_post(); // line 11
       endwhile; // line 193
       ```
   
 * You missed `wp_reset_postdata();` after executing this loop.
 * Please fix to ensure it could help other guys solve that.

The topic ‘Missing reset post data after a loop’ is closed to new replies.

 * ![](https://ps.w.org/ims-countdown/assets/icon-256x256.png?rev=2002461)
 * [IMS Countdown](https://wordpress.org/plugins/ims-countdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ims-countdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ims-countdown/)
 * [Active Topics](https://wordpress.org/support/plugin/ims-countdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ims-countdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ims-countdown/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [Khoi Pro](https://wordpress.org/support/users/khoipro/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/missing-reset-post-data-after-a-loop/)
 * Status: not resolved