{"id":3595,"date":"2023-04-24T18:27:50","date_gmt":"2023-04-24T12:57:50","guid":{"rendered":"https:\/\/imageattributespro.com\/?p=3595"},"modified":"2023-04-24T18:33:46","modified_gmt":"2023-04-24T13:03:46","slug":"auto-copy-image-attributes-to-post-html-from-media-library","status":"publish","type":"post","link":"https:\/\/imageattributespro.com\/auto-copy-image-attributes-to-post-html-from-media-library\/","title":{"rendered":"Copy image attributes to post HTML while updating in Media Library."},"content":{"rendered":"

WordPress stores image attributes in the Media Library and in the Post HTML<\/a>. Updating image attributes in the Media Library does not<\/span> update the attributes stored in the post HTML by default.<\/p>

With Image Attributes Pro version 4.3<\/code> and later, you have the option to update the image title and image alt text in the post (or product) HTML when you update attributes in the Media Library. <\/p>

You will find this setting in Image Attributes Pro settings > Advanced<\/code> tab > Miscellaneous Settings<\/code> as you can see below.<\/p>

\"Copy<\/figure>

Once you enable this option, each time you update any image attribute in the Media Library, the image title and image alt text will be copied to the posts, pages or products where the image is used. <\/p>

A list of posts where the image is used will be available in the Media Library meta box<\/a>.<\/p>

Here are few screenshots to help you understand how this feature works.<\/p>

\"Updating
Updating image attributes in the Media Library. The meta box shows where the image is used.<\/figcaption><\/figure>
\"Image
Image title and alt text is copied over to the product HTML while updating Media Library.<\/figcaption><\/figure>

Few things to note: <\/h2>
  • The image attributes are copied over only when you update the Media Library manually. When Media Library is updated programmatically, the attributes are not copied over. <\/li>\n\n
  • The image attributes will be used just as they are in the Media Library. Any attribute settings you have in the Advanced<\/code> tab of Image Attributes Pro will be overridden. <\/li>\n\n
  • The Bulk Updater must be configured to Update in<\/code> the Post HTML<\/code> in the Bulk Updater Settings<\/code> of Image Attributes Pro. Otherwise, the attributes will not be copied over. <\/li>\n\n
  • If bulk updater is set to Preserve existing attributes and add missing attributes only<\/code>, then image attributes are only copied over if the corresponding attributes are empty in the post HTML.<\/li><\/ul>","protected":false},"excerpt":{"rendered":"

    WordPress stores image attributes in the Media Library and in the Post HTML. Updating image attributes in the Media Library does not update the attributes stored in the post HTML by default. With Image Attributes Pro version 4.3 and later, you have the option to update the image title and image alt text in the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3595","post","type-post","status-publish","format-standard","hentry","category-getting-started"],"_links":{"self":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/posts\/3595"}],"collection":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/comments?post=3595"}],"version-history":[{"count":6,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/posts\/3595\/revisions"}],"predecessor-version":[{"id":3607,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/posts\/3595\/revisions\/3607"}],"wp:attachment":[{"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/media?parent=3595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/categories?post=3595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imageattributespro.com\/wp-json\/wp\/v2\/tags?post=3595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}