A free, lightweight and easy to use plugin that allows you to seamlessly replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files!
Supported by the friendly team that created ShortPixel ?
Don’t you find it tedious and complicated to have to first delete a file and then upload one with the exact same name every time you want to update an image or any uploaded file inside the WordPress media library?
Well, no longer!
Now you’ll be able to replace any uploaded file from the media “edit” view, where it should be. Media replacement can be done in one of two ways:
This plugin is very powerful and a must-have for any larger sites built with WordPress. It now also comes with preview of the replaced image!
There is a shortcode available which picks up the file modification date and displays it in a post or a page. The code is:
[file_modified id=XX format=XXXX] where the “id” is required and the “format” is optional and defaults to your current WordPress settings for date and time format.
[file_modified id=870] would display the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot #4)
If you want more control over the format used to display the time, you can use the format option, so
[file_modified id=870 format=Y-m-d] would display the file modification date but not the time. The format string uses standard PHP date() formatting tags.
Do you have suggestions? Feel free to contact ShortPixel here
Want to help us improve the plugin feel free to submit PRs via GitHub here.
Quick and easy installation:
enable-media-replaceto your plugin directory
This plugin makes it easy to update/replace files that have been uploaded to the WordPress Media Library.
A new option will be available in the Edit Media view, called “Replace Media”. This is where you can upload a new file to replace the old one.
There are two main reasons this would happen.
First, make sure you are not viewing a cached version of the file, especially if you replaced an image. Press “Refresh” in your browser to make sure.
Second, if the file really looks unchanged, make sure WordPress has write permissions to the files in your uploads folder. If you have ever moved your WP installation (maybe when you moved it to a new server), the permissions on your uploaded files are commonly reset so that WordPress no longer has permissions to change the files. If you don’t know how to do this, contact your web server operator.
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!View Cart
Cookiebot is a cloud-driven solution that automatically controls cookies an...
This plugin inserts social share links at the top or bottom of each post.
Flexible button creator allowing you to stick floating buttons to the side ...
YITH WooCommerce Catalog Mode, a plugin for disabling sales in your e-comme...