Title: Bug in post.php page
Last modified: August 24, 2016

---

# Bug in post.php page

 *  Resolved [llemurya](https://wordpress.org/support/users/llemurya/)
 * (@llemurya)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-in-postphp-page/)
 * Your plugin change the global $post variable, when I navigate on an slider page
   and print the $post it show me the page post type, but I am in a custom post 
   type. I uninstalled your plugin and it works perfectly.Please read this article
   it will be helpful [global post change after query](http://www.ciiycode.com/7imBSzWXWPXW/wordpress-global-post-changed-after-query).
   This is the [Solution](http://static.md/188c2f0923ccafe5a6d5f2b828cbb71d.png)
   I tried and the bug disappeared , the lines I added is commented with //added.
   Please see and fix this bug.
 * [https://wordpress.org/plugins/simple-wp-sitemap/](https://wordpress.org/plugins/simple-wp-sitemap/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Webbjocke](https://wordpress.org/support/users/webbjocke/)
 * (@webbjocke)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-in-postphp-page/#post-6012241)
 * Hi thanks for bringing this up to me! I actually thought wp_reset_postdata() 
   took care of everything and changed back global $post to its value before the
   loop. I’ll look this up and add a fix in the next update.
 * Nice solution btw!
 *  Plugin Author [Webbjocke](https://wordpress.org/support/users/webbjocke/)
 * (@webbjocke)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/bug-in-postphp-page/#post-6012525)
 * bump!
 * Since this was an error in the past when the sitemaps were static instead of 
   dynamic as of now, this fix has now been removed since it’s now longer necessary.
   If you would still encounter it (that will say if you’re still using the plugin)
   please let me know and I’ll look it up.
 * However I would be heavily surprised if it did so 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug in post.php page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-wp-sitemap_859b84.svg)
 * [Simple Wp Sitemap](https://wordpress.org/plugins/simple-wp-sitemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-wp-sitemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-wp-sitemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-wp-sitemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-wp-sitemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-wp-sitemap/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Webbjocke](https://wordpress.org/support/users/webbjocke/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/bug-in-postphp-page/#post-6012525)
 * Status: resolved