You use the function get_the_post_thumbnail() which returns a string. So you need to print that string with echo or use the_post_thumbnail() which echos itself.
Related Posts:
- Trying to use “Medium” featured image for custom post type on home page
- wp_get_attachment_image not to get the post_thumbnaill
- Query posts only with featured image
- Count the number of images uploded on the website
- How to paginate attachments in a secondary query as gallery?
- How do I exclude all images from a wp_query?
- Get attachment by slug
- get images attached to post
- In loop: posts have thumbnail AND other variables
- How to display images in related posts?
- Trying to check and see if a post has a featured image outside of the main loop
- query attachments of parent page if attachments of current page are smaller than …
- Query sticky posts with thumbnails
- Retrieve featured image (thumbnail) url from multiple posts with one query
- wp_query for displaying attachments with a tag
- Get image of latest post from taxonomies/categories
- WP Query search for attachments and their exact title
- Multiple instances of Featured Image Query
- post thumbnail not showing up with shortcode
- How WordPress attaches its Featured Images with posts?
- getting post thumbnail within loop causes an error
- WP_Query condition affects posts_per_page count
- Site not getting correct featured image from my query
- Retrieve posts using thumbnail id as meta key
- WP Query – Post Thumbnail
- Redirect to another page using contact form 7? [closed]
- Better wordpress attachment query than this
- How can I check for a thumbnail in WordPress?
- how would i change post->ID to work correctly when querying pages?
- How to display the featured image for each post?
- Query posts only without featured image
- How to add WordPress featured image via SQL
- Display all attached image of every post of custom post type and link to original post
- the_post_thumbnail do 2 queries. How to optimize
- Insert images into wordpress post with a query
- Find only those galleries with images
- WP_Query: attachment image in “full” size?
- Featured images loop for Orbit Slider
- how to put thumbnail below category’s title?
- WP_Query how to add a thumbnail to the first post from the last 5 posts?
- Change database image location for transportability
- WP query retrieve the src of attached image
- Featured Image as Background with Offset
- How To Query All Attachment Images Found In Post Galleries
- Display images with same specific value?
- Featured image not showing on page
- Some images not being returned with wp_get_attachment_image
- Display First posts without the default featured image
- Pull Instagram images into an existing loop?
- Display only posts with thumbnails
- wp_query not working with post_type
- WP_Query posts with comments only
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- Default permalink structure causing Notice: Undefined property: WP_Query::$post
- How to check the array values, what WP_Query has brought to me?
- How to Order a list of taxonomies? orderby?
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- Get posts that do not have the same tags as current
- queried_object using pre_get_posts gets notices and warning
- post_parent don’t work and return 0 page
- date_query in pre_get_posts out of memory
- Exclude a Woocommerce product from WP_Query
- WP_QUERY wrong ammount of posts
- Expecting statement error from php loop using ACF plugin
- Get specific ACF key and value from all posts – no access to DB
- How do I sort this custom list of sticky posts
- Custom field as featured image caption
- Query only displays one page_id
- How to exclude a category name from showing?
- All Posts Have The Same Comments
- Trying to get property of non-object in: $wp_query
- How to set parameters for search loop?
- I am officially missing something about transient posts
- Register Taxonomy – What is `query_var`?
- Get Post ID as a separate RSS feed item
- How to update custom image sizes?
- how to retrieve WP_Query without ordering by date [duplicate]
- Which is from this queries is more faster
- Related posts by current posts child category
- Trying to change category of wp_query
- Block internal search queries with pre_get_posts and regex rules
- my featured image of wordpress are not showing in the front end though image are uploaded in media library
- Is it possible to give a classname to specific comments in the WordPress admin?
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- How to upload 3 attachments to current post?
- Search Field that allows options of “Match any keyword” or “Match all keywords”
- WP_Query for posts that have postmeta assigned to a taxonomy
- Help displaying related categories
- Show more than one post on the main page excluding certain category
- How to make a wordpress loop file that displays posts based on certain conditions
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- How do I display posts with specific value in a custom field into my loop?
- Orderby Meta Value and Query from Meta Query
- WP Query to order posts by multiple meta fields
- Order by multiple meta keys on wordpress
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Full size image option removing problem
- paginate_links() with Custom Taxonomy
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Rewrite URL custom search query