Error thrown

Call to undefined method WP_Post::get_field()