Say you have a website where you have manually updated the image attributes of some of the images in the media library. Now you want to copy them to the posts (or products) where the images are used.
If you haven’t noticed already, updating image attributes in the media library does not update them in the posts automatically. WordPress also stores a copy of the image attributes in the post or product HTML.
If you are not sure what that means, please read: Understanding How WordPress Store Image Attributes
Copy Image Attributes From Media Library To Posts In Bulk
Image Attributes Pro
version 4.3 and later ships with a custom attribute tag
%copymedialibrary%. This tag can be used as custom attribute as you can see in the screenshot below.
To copy image attributes to posts:
%copymedialibrary%as the custom attribute in
Image Title Settingsand
Image Alt Text Settings.
- Switch to
Bulk Updater Settingstab and for Image Title and Image Alt Text Settings, configure the
Handling existing attributes` setting. You can choose to overwrite existing attributes or update only missing attributes. (Refer screenshots below.)
- Save the settings.
- Switch to the
Bulk Udpdatertab and run the bulk updater.
What if some posts already have custom Image Title and Alt Text?
Say you updated some of the images in posts with an Image Title and / or an Alt Text when the image was added to the post and you do not want them to be overwritten again.
Image Attributes Pro got you covered, refer screenshots below.
Please remember to test the bulk updater using the
Test Bulk Updater button to make sure the expected output is what you want. It’s also a good idea to take a complete database backup before doing anything in bulk.