Wordpress - Content Management
Which of the following is the correct syntax to check if a post has a featured image in a template?
has_post_thumbnail() returns true if the post has a featured image.if (has_post_thumbnail()) { /* code */ } is valid PHP and WordPress usage.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions