$post is an array not an stdClass