adding the_post call to get the current page in global memory