Error thrown

Call to undefined function the_post_thumnail()