Error thrown

Call to undefined method WP_Post::post_excerpt()