Wordpress - Content Management
Identify the error in this code snippet that tries to display a featured image:
if (has_post_thumbnail) {
the_post_thumbnail();
}if (has_post_thumbnail) {
the_post_thumbnail();
}has_post_thumbnail is a function and must be called with parentheses ().the_post_thumbnail() can be called without arguments; the semicolon is present after it.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions