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
- How to benchmark a WordPress installation? [closed]
- Why do folders have Empty Index.php Pages?
- How to search in a Custom Field?
- Customise search form in the Widget
- Hide devices selection from customizer?
- Add options to the “Screen Options” section on the “Menus” editor
- Deep customization of wp-login.php
- Retrieve Image Attachments Getting Post Thumbnail Image First
- WordPress broken after changing URL
- How to make the Pages in WordPress Customized?
- Custom “wp_login.php?action=lostpassword” and reset password
- Responsive menu on genesis theme [closed]
- Validate user login in php
- Query Product categories what have a custom field
- Custom Route Returns 301/Passing Variable from Input
- Menu selection for header
- How to display custom admin pointers (tips/notifications) in Dashboard until dismissed?
- Pass the post ID
- Include plugin´s table in custom query
- Uploaded Media Images on Site
- Change the User/ Author of the Products
- I have one page in my WordPress site with a table that needs to be super compact and simple
- Redirect all pages to the custom login page except for the registration page
- How can I use an image from an external source without uploading it to the media library
- How to apply filters if editing specific template
- Some data of one custom user profile is erased when I update another custom user profile
- Is it bad practice to add a filter within a filter in wordpress?