{{ post.thumbnail.ID }} will get you the image ID, but to answer what you’re after….
<img src="https://wordpress.stackexchange.com/questions/228726/{{ post.thumbnail.src("medium_16x9') | default( Image(1234).src('medium_16x9') ) }}">
Related Posts:
- How to add a class to the attachment images
- Adding Featured Image to Post programatically
- Conditional Statement – check if post has an attachment image
- Get a Page’s attachments in Gallery order
- Mass update excerpt
- Enable custom logo upload if logo is not in header
- Attaching images to posts manually (i.e. with custom code, without the use of an API)
- Get list of posts from attachment
- How to control WordPress image metadata (using Imagick)?
- How can I get a single php file that is the equivalent of an existing WordPress page?
- Get and insert order email address to the PHP template inside HTML text
- Get the post ID and display the images
- Custom search results page not working with empty search
- Responsive Header for Phone
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Reprinting tags with all attributes
- How to show single category archive
- code is skipping a div
- Issues getting PHP to display in category pages
- How to get next image with this code from same post?
- Unread Repeater field IMG alt not working
- Can’t upload image using media_sideload_image
- Send multiple attachments with wp_mail in PHP
- Upload multiple images to a Woocomerce product
- Change title only in dynamic page
- How to use thumbnail size of image if I’m only using src to get image
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Accessing an image folder inside public web directory
- get_children displaying images removed from the page
- Why is image hard cropping for one image using add_image_size not working?
- Secondary navigation menu on one page
- Why my image upload button is not working in wordpress widget area?
- Attach previously uploaded image to post – current code has unexpected results
- Scrape external webpage for first image and add it to new post
- How to make own crop image function for WordPress plugin
- “imagejpeg” function is not working in wordpress
- Display image from an external rss feed on wordpress without plugins
- wp_mail file attachment not being placed in upload folder?
- How can I edit the content in index.php? [duplicate]
- Woocommerce Show Single Product on Homepage
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- how to show only specific category for a template
- Show a different code on front page to other pages
- Does wordpress templates always in files or in database?
- WordPress automatically adds links to uploaded images
- WordPress function when file is uploaded, deleted or edited
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Using same variable names in files added with get_template_part()
- PHP include is only working in certain places in my custom WP theme
- Use WordPress function in php file
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- Add filter multiple times using only one master function
- Create a Blog Template Page
- Download images from media library to computer in BULK?
- Showing latest post without 301 redirect
- Three Questions with Twenty Eleven theme
- Returning data instead of echoing/printing
- WordPress template page name displayed on screen
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- How to loop through all the attached images in a post, and get their url one by one
- single.php with different look by category
- Which function crops images in wordpress?
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Division by zero error in image.php
- Resize image to specific dimension (X to Y ratio)
- How can I automatically resize up images to fit into all of my registered image sizes
- Clickable image link sends people to wrong URL
- How do I define a lookup table that will work across all PHP elements of the template?
- Only show image from custom field when present
- persist a variable set in header.php all the way down to footer.php
- Timthumb.php image gallery not working on Multisite WordPress
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Removing WordPress Footer -without access to PHP code?
- Upload non-featured image to image field
- How to set a template with wp_insert_post
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Why does the Woocommerce grouped template prints the unpublished products?
- Adding conditional text to a PHP Shortcode Template
- Create page template via functions.php?
- Where are the src and srcset sizes coming from?
- HTML showing after PHP code in tag
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- how to display this functions?
- is_page_template showing partial results
- Adding regular php file to site
- Only show first image in foreach loop
- trying to get wp_get_attachment_url to output clickable link
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- add_filter function concatenate string and locate_template function
- Change default gallery images – Currently they are displaying full size imagese
- How to render a block from php template
- Template Loop – add switch case php
- Override Admin menu icon
- I’m unable to call img path using single quotes in an array?
- Post repeated when opening in overlay, how do I solve this? [closed]
- Creating black and white copy of an image [closed]
- How to suppress template-parts in undescores?
- Need help with pagination
- How can I get “Previous” and “Next” to show in the navigation besides the links?