WP_Query in functions.php overrides global $post object, even with wp_reset_query()
I’ve written a function that grabs all posts that are drafts and puts them as a dropdown in my toolbar for easy access to complete. This works just fine. The problem is that it seems to mess with my global $post object, specifically when called in my post/page editor. So if I’m in my post … Read more