Replace “get_the_post_thumbnail_url()” with below
wp_get_attachment_image_src( get_post_thumbnail_id( $posts->ID ),"thumbnail")[0];
OR
get_the_post_thumbnail_url(get_the_ID(),"thumbnail");
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- What’s the best way to use the Featured Image for responsive web design?
- Adding Featured Image to Post programatically
- How to upload imagick resource to media in wordpress
- How do I get images (with a thumbnail preview) to show in search results?
- Assign a picture URL to a page via PHP
- How to scale image with equal width and height without distortion?
- Echo URL of large version of Featured Image
- Recent posts with featured image or fallback image with permalink
- Set the background to a default image if there isn’t a specified “featured image”
- Redirect to another page using contact form 7? [closed]
- Three Questions with Twenty Eleven theme
- Resize image to specific dimension (X to Y ratio)
- Help Fallback (thumbnail)
- Shortcode function doesnt work without caption
- Get featured image with custom size outside WordPress
- Else/If Statement to Display Photo Descriptions
- How to set a featured image (thumbnail) with PHP?
- Generate responsive post thumbnails of same size
- How to Make Thumbnail of Post Stay Animated
- not outputting medium size image URL
- Resize post thumbnail
- How to add a PHP scripts into WordPress
- add class to background image
- Overwriting a Shortcode
- Setting post thumbnail sizes in template file and functions.php
- add if statement to the featured image
- Remove default Image Sizes
- Generate and upload screenshot as featured image for user-submitted post
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?
- PHP/Manual use of images? – 2 Questions
- Debugging upload problem: What part of WP does actual image-resizing?
- How to create shortcodes that pull custom field data from general settings
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- Get list of shortcodes from content
- Audio tags around Mp3 URL in content
- Wrap each shortcode in array to div
- Put php variable in shortcode
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- How do I add text in a shortcode?
- How to Display Image Meta underneath EVERY image in EVERY post
- Template part inside shortcode, unexpected reult
- Shortcode Inside Class Not Working
- Escape post image attachments added to template
- Display post image with fancybox
- Shortcode API: How to get name that matched shortcode RegEx?
- Shortcode content filter?
- WP dynamic featured image – Can’t get second featured image url
- Get value from shortcode to do something
- Custom shortcode outputs plain text instead of HTML at top of post
- Why my image upload button is not working in wordpress widget area?
- Excecuting php function in shortcode
- Returning data instead of echoing/printing
- do_action(), iFrame Gets Displayed Despite Password Protection [closed]
- Using Shortcode to Grab Archive Listing, Separate by Year
- Timthumb.php image gallery not working on Multisite WordPress
- List all blogs, but exclude the main site
- Change default gallery images – Currently they are displaying full size imagese
- Creating black and white copy of an image [closed]
- Action Hook Inside WordPress Plugin Shortcode
- How can I include the user id inside of a shortcode php output?
- PHP Helper Class to create shortcodes
- How to pick “full/thumbnail” images in the loop?
- Some problems in custom widget
- Displaying images outside the content
- Checking page before applying image restrictions while uploading
- Updating Metadata with Shortcode
- Create shortcode for metabox gallery
- Update Images after edit via php
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- How can I edit the final HTML structure of the whole web page
- I am having an issue with this shortcode plugin.. Warning: Illegal string offset ‘title’
- How to add WordPress Featured image in tag ..?
- How can I create a shortcode from an html and php code written together
- How to programmatically set existing image in media library the featured image for a post in wordpress
- CPT in a shortcode
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- How to include different html tags in the header for different pages?
- WordPress Shortcode based on other shortcode
- Force ‘permanent’ post cache of shortcode results
- Use html tags in shortcode_atts, is it real?
- Save the outputted image into the Media Library, with a different filename and extension
- News and Featured image
- How to have Function of a plugin using global vars into a shortcode?
- Creating image gallery in wordpress
- Image limit from 1 to 5
- Gallery requires a featured image but does not show it in posts/pages
- Where to place PHP for shortcodes
- How to wrap a text with shortcode into php file?
- Changing 2011 theme header image based on user dropdown
- PHP Widget and do_shortcode
- Shortcode not passing variable to included file
- How to automatically convert images to WebP on WordPress?
- WP Custom tables query
- Display terms on product page with shotrcode
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- Custom plugin with shortcode not working
- Woocomerce custom add to cart button edit functionality [closed]
- I have a php function with a shortcode to add share buttons, but I’m having an error!
- HELP PLEASE PHP slider css