how to display thumbnail image post loop
-
Would like the thumbnail to appear to the left of the post content. The text is indented but the thumbnail does not display. Can you help
The page I need help with: [log in to see the link]
-
Hello Jane,
in order to display the featured image on a page, you’ll need to tick the “Activate Extended Header” option – more information in this part of the theme manual.
Sorry, but that has not worked. I enabled Extended header in the post, and added the image. But in the post loop the thumbnail still does not display.
How do I get the thumbnail to appear in the post loop display?
Could you please provide a live link to the post loop where you’d like the thumbnail to display? Thanks!
Hello,
Sorry for the delay. Here is the link. https://www.theartssocietyyork.org.uk/test-page-for-post-loop/
Thanks! Since the post loop on this page is made using the Content Builder, not the native Bento loop, it’s not directly related to the theme itself, but as a hit – the Builder’s loop widget displays images that are sourced from the WordPress featured images (thumbnails) – in this case the images inside the posts are Builder elements, not the default WordPress thumbnails; you could try adding the latter to the posts and see if the loop starts displaying them.
Sorry, but I don’t understand. I HAVE added the featured image to the post. They have been added to all the posts. But they are not displaying. Presumably, other people have tried to use the Post Loop and have been successful?
Let’s take a random single post as an example. It does have an image, but that image was added via the Content Builder interface, not via the WordPress native featured image option. Only the latter will display on the blog posts page.
+Featured image metabox appears on individual posts.
+Featured image ticked on Screen Options
+add_theme_support( ‘post-thumbnails’ ); added to functions.phpHave done all this below to add featured image: (Not done “via the Content Builder interface”) Still doesn’t work.
Post Thumbnails is a theme feature introduced with Version 2.9. It was quickly changed to Featured Images with Version 3.0. Post Thumbnail, now Featured Image, is an image that is chosen as the representative image for Posts, Pages or Custom Post Types. The display of this image is up to the theme. This is especially useful for “magazine-style” themes where each post has an image.
Contents
1 Enabling Support for Post Thumbnails
2 Setting a Post Thumbnail
3 Function Reference
4 Examples
4.1 Default Usage
4.2 Linking to Post or Larger Image
4.3 Thumbnail Sizes
4.4 Set the Post Thumbnail Size
4.5 Add New Post Thumbnail Sizes
4.6 Example of functions.php
4.7 Styling Post Thumbnails
5 Source File
6 External Resources
7 Related
Enabling Support for Post Thumbnails
Themes have to declare their support for post thumbnails before the interface for assigning these images will appear on the Edit Post and Edit Page screens. They do this by putting the following in their functions.php file:add_theme_support( ‘post-thumbnails’ );
Note: To enable Post Thumbnails only for specific post types see add_theme_support()Setting a Post Thumbnail
If your theme was successful in adding support for Post Thumbnails the “Featured Image” metabox will be visible on the on the Edit Post and Edit Page screens. If it isn’t, make sure “Featured Image” is enabled in the screen options on the top right.Featured Image Metabox
Featured Image metaboxAfter clicking the “Set featured image” link follow the same steps as inserting images in Posts and Pages. Once you have selected the featured image and determined the image settings, click on the blue “Set featured image” button, to set it as the featured image for your page or post.
“Set featured image” button
Please contact me at [email protected] citing the link to this ticket, we’ll continue from there. Thanks!
Hello –
After clearing caches, this is what worked:
Adding this to the functions.php file made the difference.
add_theme_support( ‘post-thumbnails’ );
This is weird.. 100% certain that this call is already present in the theme’s functions.php file 🙂 Anyways, if you run into any other issues in the future, don’t hesitate to contact me!
The topic ‘how to display thumbnail image post loop’ is closed to new replies.
