According to your description, in your template, it currently fetch image with specific size such as ‘thumbnail’ or ‘medium’ and so on. You want to change that with a main control and force them to use original image, right?
If so, you may try the filter post_thumbnail_size
add_filter( 'post_thumbnail_size', 'q363844_modify_image_thumbnail_size', 10, 2 );
function q363844_modify_image_thumbnail_size( $size, $post_id ) {
// because you want to return original, you can set it to 'large'
return 'large';
}
But in the long run, I think it is not good for your website traffic and optimisation.
You may consider to use a plugin by searching keywords regenerate thumbnail
in plugin repository.
Related Posts:
- Separate Media Library for each user
- Maintaining image color and quality when uploading using custom sizes
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Alter media caption/description conflict in WordPress?
- Separate attachment images from post loop
- Caption in Page adding unwanted 10px to width
- Loop through child images of a parent for a Nivo Slider
- Rename attachments during upload
- alt, title tags not showing
- Remove the http protocol from images
- Why can’t I edit certain images from the WordPress Media library?
- How to add a media with PHP
- How can I store an image in the database with Transients API?
- How to prevent resized featured images?
- Get original image from thumbnail URL
- Display one random image, but only if landscape
- WordPress url image redirect to the homepage
- How to change image url?
- Bulk image rotation
- Is there a way to delete images from WordPress media library programmatically?
- Update image links in database
- Special purpose photos with each post
- WordPress – different icon image depends of comment number
- Change image url size in post editor (when cliking on image)
- Multiple images with Media Uploader on front-end
- Pull Random Attachments With Pagination
- Upload media files to Amazon S3
- image uploaded cant be shown
- Turn off image captions in gallery view?
- How to get default image sizes attribute
- Unyson Framework doesn’t show gallery images
- Image not shown in the theme as it’s showing in HTML template [closed]
- add_shortcode to capture URL screenshot not loading correctly
- Broken Images until Page Refresh
- Show image crop window on image upload
- Get image from parent category
- Images attached to posts from library link to 404 error page
- Gallery with thumbnail carousel
- Uploaded images not displaying in network site
- Omit image captions from get_the_content()
- Specific image size is being generated without being registered
- How to limit the number of images displayed in the media window?
- Should I not compress my jpeg files before uploading to avoid double compression?
- Is it possible to preserve original images in order to change image size later?
- Generating a certain sized thumbnail on the fly?
- How to display title of attached image in post?
- Need custom picture field for pages
- Only make custom image size if uploaded via Thickbox and attached to certain page
- Link listings with image
- Allow users to contribute images to a post
- How to add onclick event to widget image
- After Migration, images show up on a preview of the page but not the actual page [closed]
- Use default image as var
- How to apply image alt descriptions from media library?
- Specify automatically the height and weight of the images
- Image upload error?
- How to crop images in a certain size only for a certain page?
- How to pass on a value as parameter via url to another page
- Image not showing using a custom function and get_post_meta
- Random home page background images with caption text
- How to add “alt” attribute for image during upload at WP front-end?
- Cache issues with images not showing up
- Specific Days, Specific image on Front Page
- How to change image’s author via a function when using GravityForms uploader? [closed]
- Using different size thumbnails on different parts of my site… with functions.php?
- Serving Images from subdomain in wordpress
- Hover a css icon width other color inside wp_get_attachment_image
- Pictures randomly replaced by blue question mark
- WordPress PHP custom function is causing 500 Internal Server Error Connection Timeout
- imported post image as normal image instead encoded image
- Updated wordpress missing image upload area
- get_post_gallery with Gutenberg
- Site not showing Image in WordPress and in HTML code also which uploaded in root what is the solution for this?
- How to set a post featured image from an already made custom field
- How to find the largest images in wordpress post
- Alt attribute is not showing while the value is given in Media
- Alternative image sizes are too large
- Image automatically resized
- How to call thumbnail by aqua resizer in best practice. Specify image dimensions’s notify from GTmetrix
- WAMP install acts different than live install when uploading images
- Images Wont Display After Importing From Old WordPress
- Image thumbnail on single product issue | WooCommerce
- How do i replace the title attribute of img tag with the image caption
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Make all images displayed in single.php a certain size
- wp_get_attachment_image_src
- I am trying to get metabox image with custom size
- Removing image dimensions from `the_content`
- Theme files and imagesnot loading on a mobile device
- Guaranteed Image Sizes
- Is there a different way to grab a thumbnail image than this?
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Change the avatar ratio?
- How to show file type of featured image?
- Images have dissapeared from media library and site
- Uploading media to wordpress API with C# HttpClient