How to check a featured image exists or not in WordPress?
We can use has_post_thumbnail()
method to check the featured image is exists or not.
BY Best Interview Question ON 02 Jul 2019
Example
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}