{{ 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 does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- How do I change/modify the_post_thumbnail(); html output?
- Is there a way to parse shortcodes in PHP?
- Change the filename format of saved featured images
- Static Frontpage Pagination – Custom loop
- Using file_exists to check file in Uploads
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Add custom image sizes to media uploader
- On this day PHP code
- How to loop over custom fields in a page template?
- Upload images and attachments from frontend form
- Use Filename for Alt and Title Tags
- Change Width of Featured Image Thumbnail on Add/Edit Post Page
- Adding graphics to 404.php page
- Strip Image Classes from HTML Output
- Additional image sizes are not being generated
- Easiest way to show total number of subpages
- Adding a querystring to an image URL when clicking ‘insert into post’?
- How to insert a local image with custom size
- Blank space at beginning of tag?
- Theme currently showing thumbnails, how to show full size?
- Validate Uploaded Image using WordPress’ Built-in Functions?
- How to display user nickname (not display name) in PHP template?
- Custom Template 404 for specific custom post type
- How to properly insert a link to a template in WordPress?
- Custom field value not saving when it contains a URL?
- How do I let users upload files to a chosen location?
- Render ninja form inside markup
- add_image_size for header_image
- Get image’s size name from it’s dimension
- Set the background to a default image if there isn’t a specified “featured image”
- 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?
- Custom search results page not working with empty search
- 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
- Can’t upload image using media_sideload_image
- How to use thumbnail size of image if I’m only using src to get image
- Why is image hard cropping for one image using add_image_size not working?
- Attach previously uploaded image to post – current code has unexpected results
- Scrape external webpage for first image and add it to new post
- How can I edit the content in index.php? [duplicate]
- Show a different code on front page to other pages
- PHP include is only working in certain places in my custom WP theme
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- Which function crops images in wordpress?
- 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
- Only show first image in foreach loop
- How to render a block from php template
- How to suppress template-parts in undescores?
- Creating custom page template from existing PHP site
- Conditional string comparison failing for basename/slug
- How to add new CSS file to new PHP file
- Generate responsive post thumbnails of same size
- Front end file upload returning wrong attachment url
- foreach repeat html structure after every nth for attachment [closed]
- how to show images without passing it to timthumb.php file for resizing
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- not outputting medium size image URL
- How to use data URL in WordPress?
- Resize post thumbnail
- Where Do Image Dimensions Get Added To A Filename?
- Polylang and template files
- Featured images duplicating and replacing next image
- I can’t load my images from a js file using wp_localize_script
- How to create dynamic templates?
- How to create an unordered list of images separate from the content
- Change WooCommerce template for PDF – access to custom field
- what’s the syntax for if the image exists get the image?
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- How to change this internal image link parameter using PHP?
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Problems With Query and/or Template Part and/or PHP
- Retrieve first image url from custom post with pagination
- Odd page behaviour after removing sidebar
- Determine if only one image attached to a post/page
- Crop images in both sides on wordpress [duplicate]
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- upload images on front by user using form
- PHP-Code inside Href-Tag
- Adding slides to an existing carousel manually
- Where to store the images of a custom WordPress theme?
- How to implement a custom sliding banner? [closed]
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- Understanding responsive imagery
- bloginfo url in javascript
- Adding caption to all images inside an article