How to call get_post()?
It’s not clear why you mess with the global, under normal circumstances you don’t need to. Out of the box, when viewing a post page, get_post() will return current post object. Regardless of the loop even, since it is set up as part of main query before template is even reached. The difference between post … Read more