Probably the simplest solution is to remove the filter before output:
// remove the filter
remove_filter('post_thumbnail_html', '_sf_responsive_img', 5, 5);
// output template
get_template_part( 'something' );
// add the filter back on if other code below outputs thumbs that need the filter
add_filter('post_thumbnail_html', '_sf_responsive_img', 5, 5);
Related Posts:
- WP “optimizing” PNGs into thumbnails 5X larger than originals – FIX
- optimized PNGs 5X larger than originals
- The the_post_thumbnail without srcset?
- Get the first image from post content (eg.: hotlinked images)
- How to modify an image block in Gutenberg WordPress 5?
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- wp_get_attachment_image_attributes not working for me
- Unexpected width and srcset attributes for the_post_thumbnail();
- How to set dimensions of the post thumbnails (featured images)
- Cannot get full thumbnail size using the_post_thumbnail
- Reasons why all thumbnail sizes aren’t working
- How do I Add images uploaded in the post to a default custom field
- Redirect to another page using contact form 7? [closed]
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- How to make excerpt image be full size instead of thumbnail?
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- Add image URL automatically to custom field?
- theme directory fallback image outputs url and not the image
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- apply_filters to featured image
- Add rel to all images in a post
- I want to resize post featured image without cropping image. How?
- How do I remove inline style in featured image markup?
- Replace single_template filter with what for default posts?
- Custom image size vs CSS sizing
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Getting Different Size Of Attachment Images
- In creating a theme, how can i allow a user to change an image outside post/page content?
- Change Responsive Images Maximum Width of 1600px
- Set a featured image as a replacement to the header image
- Unique design inside a specific category’s url
- How to rotate every letter in a title
- Dynamic Post Thumbnail →
- How to show a manageable list of images on a post?
- Issue on Getting Custom post type Thumbnail’s URL
- Change image size depending on page
- How to obfuscate theme directory URLs
- the_post_thumbnail() get the URL to the “medium” sized image
- Are seven additional image sizes are too many?
- Remove link on full-size images
- CSS class on last post in loop ( custom query )
- How to change footer credit text in Twenty Twenty One theme with a hook?
- how to retrieve the image title for image Post Format
- Use a filter on menu items that have children
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- Modify available templates (in dropdown)
- Theme logo metadata into template file
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- WordPress creating images if uploaded image is greater than 960px on one side?
- tiny_mce_before_init: ‘exact’ => true has no effect
- Full width featured thumbnail
- How to fix WordPress images not showing up in local hosted XAMPP server?
- How to conditionally add a wp_filter
- Filter didn’t work on content class (hybrid_post_attributes)
- How to set default values for edit_post_link() in my theme?
- Change Image Sizes for Mobile Theme
- How can I get the featured image or the first image for a post/page and display it as a banner?
- Stop WordPress from showing images on non post pages
- Tiny MCE custom styles, and preview in the backend
- How to add cropped custom header image?
- Is there a way to serve different resolution images to different devices?
- content filter (add_filter) for category description?
- How can I remove image taxonomy pages from my theme and from Google?
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- Designing a custom archive.php inspired by the Autofocus theme
- Related Post Category Filter
- ACF get_sub_field ALT TAG in the repeater doesn’t show
- Pagination don’t work with active filters
- WordPress Animation Adjustments
- How to register dynamic settings in WordPress Customizer?
- How to change Gallery image url in product page ? In function.php?
- restrain filter on get_the_excerpt to queried item in stead of current post
- Post Featured Image Custom Sizing?
- Image cropping isn’t working correctly when using Offload Media
- WordPress wp_get_current_user returning blank values until refresh
- How to add an image to a theme page template in code?
- Created blank theme for REST API, featured image not appearing on admin side
- Alternative solution for script_loader_tag?
- Alt header logo and link for specific pages
- Responsive Images with art direction
- Customizer Image-Picker Preview Not Working
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Uncaught Reference error in Retina.js
- Make a custom field in admin post.php read only
- Can’t upload images on new theme
- Images use & location, on new wordpress theme
- Caption Shortcode: what filter to change the image size?
- image sizes – finding and removing
- Hook in parent theme Menu function
- How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags
- How to add custom nav_menu_css_class to certain menu only?
- Full width thumbnail
- Adding a Class to an Getting From Post Content
- How to manipulate wordpress template tags’ output
- Featured Image Module Randomly Disappears
- what is do_action(); in wordpress? [duplicate]
- Create image with imagepng() (fails at header)
- Single Featured Image Repeating
- Suppress the_content filter in a nested loop
- can’t output gray scaled image I’ve created using add_image_size