remove unnecessary global $post call