Good question as I know that this can be a pain in the butthole. Please see this page; https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url/.
From the docs:
get_the_post_thumbnail_url($id, 'image-size')
So in your case:
$img = get_the_post_thumbnail_url($post, 'article-lede');
echo "<img src="https://wordpress.stackexchange.com/questions/353305/{$img}" class="featured-image img-fluid" />";
Related Posts:
- Image Editor does not affect custom sizes!
- Using custom image resizing script in a page
- Featured Image If Else Condition
- How to add the option to choose between sizes for featured image within post editor?
- Upload image without resizing but insert in post with resizing
- WP 4.4. responsive images browser choosing the “wrong” one
- the_post_thumbnail responsive srcset not populating with custom image size
- Why doesn’t WP_Image_Editor save images using the Filesystem API?
- How to create thumbnails with a fixed width, so all of them will have the same width?
- Is there a plugin to make attaching images easier?
- Managing Images for a WordPress Blog: Picasa or Flickr?
- Generating Responsive Background Image Sizes in PHP
- Automatically wrap post image in div
- wordpress custom walker for thumbnails with custom menu
- Custom image size not selectable in uploader
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- Customizer image control default value showing in customizer but not on frontend
- wordpress responsive image srcset not working
- Setup A Default Featured Image
- Importing media medium setting image gallery / image attachments
- Extract & Display the REAL first image attached to a post – extend the_post_thumbnail()
- Add filename to attachment page url
- Get specific image size for small viewport width
- How To Add buttons to the toolbar which appears in TinyMce when you click over images
- Hide upload image fields for the different media upload popups
- How to display post title & excerpt when mouse hovers on an image?
- Remove image classes from post thumbnail output
- Video to stretch across the entire homepage [closed]
- Automatically add image caption with values from a post parent field?
- Is there a way to dynamically get to your uploads folder?
- How do I Add images uploaded in the post to a default custom field
- Using Fullscreenr with a wordpress blog – weird bug
- Add clickable arrows to parent menu items with children elements e.g. with
- Get Image from Media Library with the Title
- Get Custom Logo Alt Text
- adaptive featured images wordpress 4.4 grid
- Background image not appearing
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme
- Redirect to another page using contact form 7? [closed]
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- Best way to allow overwriting images shipped with the plugin?
- Custom responsive ‘featured image’ sizes
- NextGEN Gallery – open all images on page in fancybox [closed]
- If custom image header does not exist display text header
- Is there a possiblity to replace profile image gravatar with custom user images
- Serve different images per screen size and cache possible?
- Custom theme – how to link the image without posting it
- Generate responsive post thumbnails of same size
- Trying to set specific image dimensions and crop with ACF
- Customizing the gallery of the post correctly
- Personalized Gallery what are my options?
- How to hide featured images of all posts falling under the same category in wordpress?
- adding fade on mouseover to images
- WordPress Responsive Image ( srcset ) not work properly
- Lightbox not showing image caption
- POST 429 Error when trying to place more than 20 images into post at once
- duplicate featured image functionality in custom meta box
- Creating custom setting in add media popup
- Bio comes up when the visitor clicks on a picture
- Adding images to anchors in the list created and fetched with wp_nav_menu
- Change default “Apply Changes To” radio option when editing images
- WP_Customize_Image_Control and selecting from library?
- How to strip thumb from widget
- featured images – custom links
- Get a different size of Image thumbnail while working with custom metabox
- Custom image sizes ignored in WP 3.5
- WordPress uploads directory. Featured Images storage
- responsive screen not working [closed]
- Edit image alignment in WordPress twentysixteen child theme on attachment page [closed]
- Set custom banner image size with wp_customize
- How to search for replacement titles and contents, excluding image URLs
- Custom Search on media files PDF images pages posts
- Images in an RSS feed
- medium_large image size not displaying properly on the frontend?
- Divi theme: change overlay color from default blue to back [closed]
- Generating very small sized thumbnails from featured image
- How to Restore Deleted Post Not in Trash
- Adding tags when creating new post
- External Link Button Under Post Excerpt on Index.php
- Hiding Short Description in Shop Page, WooCommerce
- Hide Customizer’s Widget Choices From The List
- How can I tag a menu item as visited for each unique user?
- Add table to WordPress database
- Get featured image with custom size outside WordPress
- Creating php pages in wordpress and assigning them to wordpress pages
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- How do I create a root link in wordpress to a PDF file?
- theme customizer – can a single option pass multiple values?
- get_delete_post_link( $post->ID ) is blank when logged in as “subscriber”
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Separate header for static home page and posts page
- Upload a web module (html and JS) to wordpress
- How to remove Customizer’s Section and move Control straight to Panel using Child Theme
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Show (print) featured image all dimensions (height, width)
- Feauterd image meta box not showing up
- Grabbing a data from wp_usermeta
- Position a hard-coded menu item
- Restrict content access to logged in users