There are two functions in WordPress to get post’s featured image.
the_post_thumbnail() – It will display featured image.
get_the_post_thumbnail() – It will return a string containing the HTML code of the featured image.
the_post_thumbnail() – It will display featured image.
get_the_post_thumbnail() – It will return a string containing the HTML code of the featured image.
No comments:
Post a Comment