Wow, that worked! I can’t believe I didn’t think to try that. I am seriously in your debt sir 🙂
Yeah, I’m once again working with ACF and am still encountering this issue. It seems that if you try and run post loops within ACF, it messes with ACFS post object.
The solution of copying/resetting the $post global still works.
Well instantiating a new query is enough to change the $post object, regardless of whether you iterate through it, or run it through a post loop. You’re right about that though, I have seen $org_post = $post in themes and templates so it is a solid “fix”. I’ll mark this as resolved, but it’s worth your team looking into why this behavior is occurring, as I have seen this issue in other threads here.
Thanks for the reply.
Yeah, that’s the solution I ended up with. However, it just seems….hacky to me. And the little nagging coder voice inside me is pointing out “that’s not the right way to do it.” I think the real solution is to find out why the wp_reset_postdata() isn’t restoring the post object to it’s original state.