1 vote

Global $post value outside the loop

Yes, this is how it is supposed to work. The global $post variable is set quite early in the page load, at the wp hook. As you can see from the hook order, this is before the loop starts. Basically ...
cjbj's user avatar
  • 14.5k

Only top scored, non community-wiki answers of a minimum length are eligible