Error thrown

Call to undefined method WP_Post::the_post()