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.
Example
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
Suggest An Answer
No suggestions Available!