removed custom function and added the_post_thumbnail in content-single