How to check a featured image exists or not in wordpress?
Answer / 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 |
How do I write on wordpress?
What is the wordpress codex?
What do you mean by a custom field in WordPress?
Can a subdomain have a different wordpress theme?
How do I create a wordpress multisite?
How to allow only registered users to comment on wordpress?
What is the loop in WordPress?
How seo works step by step?
Is wordpress good for an online store?
Can I sell on wordpress?
How do I activate multiple themes in wordpress?
Is wordpress multisite free?