Title: wp_reset_postdata not working
Last modified: December 7, 2016

---

# wp_reset_postdata not working

 *  [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wp_reset_postdata-not-working-2/)
 * I have a WP_Query for a few posts echoing some images attached to them from a
   category. I reset the post data and it still seems to be affecting the main loop
   on the same page on my live site. Developing locally its not affected. I have
   read the codex and believe I have followed best practice for reseting the post
   data, but I could have made a mistake!
 * complete code of my index.php page here [http://pastebin.com/Qw4Hnmj4](http://pastebin.com/Qw4Hnmj4)
 * Thank you

Viewing 1 replies (of 1 total)

 *  Thread Starter [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wp_reset_postdata-not-working-2/#post-8538707)
 * anyone able to confirm if I am not following the codex correctly?

Viewing 1 replies (of 1 total)

The topic ‘wp_reset_postdata not working’ is closed to new replies.

## Tags

 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * 1 reply
 * 1 participant
 * Last reply from: [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/wp_reset_postdata-not-working-2/#post-8538707)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
