Created
February 25, 2015 03:45
-
-
Save designbuildtest/975db28eadabdf7c7065 to your computer and use it in GitHub Desktop.
Reset Post Data - partially effective
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://stackoverflow.com/questions/23593897/wordpress-global-post-changed-after-query | |
| global $post; | |
| $backup_post = $post; | |
| ... | |
| $post = $backup_post; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment