On a category archive page, in a filter called from a block outside a loop, I noticed that the get_postget_post
function with a null
first parameter returns the first loop's post.
Is it supposed to return such a value ? I would have imagined that the global $post
variable should have a value only in a loop or on a post page.