0
0
Wordpressframework~5 mins

Featured images in Wordpress - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a featured image in WordPress?
A featured image is a main image that represents a post or page. It often appears at the top or alongside the content to visually summarize the topic.
Click to reveal answer
beginner
How do you enable featured images support in a WordPress theme?
Add add_theme_support('post-thumbnails'); in the theme's functions.php file to enable featured images.
Click to reveal answer
beginner
Which WordPress function is used to display the featured image in a theme template?
Use the_post_thumbnail(); inside the loop to show the featured image for the current post.
Click to reveal answer
intermediate
Can you set different sizes for featured images in WordPress?
Yes, WordPress lets you define and use different image sizes. You can specify a size name in the_post_thumbnail('size-name'); to show the image in that size.
Click to reveal answer
beginner
What happens if a post does not have a featured image set?
If no featured image is set, the theme may show a default image, no image, or a placeholder depending on how it is coded.
Click to reveal answer
Which function enables featured image support in a WordPress theme?
Aadd_featured_image_support();
Benable_featured_image();
Cset_post_thumbnail();
Dadd_theme_support('post-thumbnails');
How do you display the featured image inside the WordPress loop?
Ashow_featured_image();
Bthe_post_thumbnail();
Cget_featured_image();
Ddisplay_post_image();
What is the default size name to show the full original featured image?
A'full'
B'medium'
C'thumbnail'
D'large'
Where do you add the code to enable featured images in a theme?
Afunctions.php
Bheader.php
Cstyle.css
Dindex.php
If a post has no featured image, what might a theme show?
AAn error message
BThe post content twice
CA default image or placeholder
DNothing, always blank space
Explain how to enable and display featured images in a WordPress theme.
Think about theme setup and template tags.
You got /3 concepts.
    Describe what happens when a post does not have a featured image set and how themes handle it.
    Consider fallback behavior.
    You got /3 concepts.