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
Luckily, Image Attributes Pro can help you with this and copy image attributes (alt text and image title for now) from the media library to all posts (and products and other post types) in bulk.
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:
- Set
%copymedialibrary%
as the custom attribute inAdvanced
settings >Image Title Settings
andImage Alt Text Settings
. - Switch to
Bulk Updater Settings
tab and for Image Title and Image Alt Text Settings, configure theHandling 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 Udpdater
tab 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.
Sounds good. How do I get started?
Checkout Image Attributes Pro and the pricing plans. If you have any more questions, please do not hesitate to get in touch.