WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Assistant
[resolved] How to - Rule for image alt to be same as "attached to" product (4 posts)

  1. longdenc
    Member
    Posted 9 months ago #

    Hi,

    I just downloaded this plugin. Looks great, but im a WP novice.
    I have a ecommerce website http://www.ecustomfinishes.com, 8000 images in my media library, most of which do not have alt text.

    How do I map/make a rule to auto generate the alt text as the product name [attached to], plus 1,2,3,4,5.... only for the images that do not have alt text right currently?

    Thank you for your help.

    http://wordpress.org/plugins/media-library-assistant/

  2. David Lingren
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks for your question. I had a look at your site; great furniture!

    I poked around in a few of the product-specific galleries and it looks like the images that already have an alt text value are filled with something like the name portion of the image file, e.g., an alt text value of "TWO-COLOR-WOOD-FAN-CHAIR-6" for the image file "TWO-COLOR-WOOD-FAN-CHAIR-6-90x120.jpg".

    You can use the Settings/Media Library Assistant IPTC/EXIF tab to add a Standard field mapping rule for your Alternate Text values. You can experiment with something like this:

    1. Leave the IPTC Value set to "-- None (select a value) --"
    2. In the EXIF/Template Value text box, enter a Content Template. For example, template:[+name_only+] to use the name portion of the image file. You can use any of the values in the "Data sources for custom field mapping" section of the Documentation.
    3. Set the Priority dropdown to "EXIF".
    4. Set the Existing Text dropdown to "Keep". This will preserve any alt text values already in place.

    Scroll down to the bottom of the screen and click "Save Changes" to save your work. You can apply the rule to all of your attachments by clicking the "Map All Attachments, Standard Fields Now" button or you can test it out on a few attachments by following the "Other Mapping Techniques" instructions in the "IPTC & EXIF Processing Options" section of the Documentation tab.

    The "Existing Text/Keep" option satisfies your "only for the images that do not have alt text right currently" criterion. The "name_only" value is as close as MLA can come to your "product name [attached to], plus 1,2,3,4,5" criterion. You could use the title of the parent/[attached to] post or page, but there's no way currently to add a sequence number for the "1,2,3..." part you want.

    That should get you started on filling in the alt text for your images. Let me know if you have any problems or further questions on this topic. Thanks for your interest in the plugin.

  3. longdenc
    Member
    Posted 9 months ago #

    Great, thank you for the help!

  4. David Lingren
    Member
    Plugin Author

    Posted 9 months ago #

    You are most welcome; good luck with your application.

    I'm going to mark this topic resolved for now, but feel free to update it if you have any problems or further questions. Thanks for your interest in the plugin.

Reply

You must log in to post.

About this Plugin

About this Topic