How to display image from blog post in blog archive page
mysitename/blog
How to display image from blog post in blog archive page
mysitename/blog
Make sure the archive template is pulling the featured image/cover image field from each post, not just static content. In most CMS setups you’ll need to bind the image element to that field in the collection settings for it to show.
got it. Edit blog post > At bottom side > blog image.
This topic is temporarily closed for at least 24 hours due to a large number of community flags.
This topic was automatically opened after 24 hours.
Block theme (no code):
PHP theme (code): in archive.php (inside the post loop):
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('medium'); // or your size
} ?>
Make sure each post has a Featured Image set.
/blog page → add an Image element inside the item → Get Image from CMS → bind to your post’s Main/Thumbnail Image field.Ensure each post has a thumbnail field in your data.
On the archive template, loop posts and render <img src="{{ post.thumbnail }}" alt="{{ post.title }}">.