How to check a featured image exists or not in wordpress?
Answer Posted / Anshu Agarwal
To check if a featured image exists, you can use the following code: nif ( has_post_thumbnail() ) { // Featured image exists } else { // Featured image does not exist }
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers