WordPress.org

Ready to get started?Download WordPress

Forums

Mini Loops
how to add alt tags to images (2 posts)

  1. cookieandkate
    Member
    Posted 1 year ago #

    Hi! Thank you so much for this fantastic plugin. I would like to incorporate alt tags into my widgets' image code. I see in the changelog that the plugin offers alt tag functionality but I can't figure out how to make it happen. I just want the alt tag to be the title of the post for each thumbnail image.

    Thanks again,
    Kate

    http://wordpress.org/extend/plugins/mini-loops/

  2. Kailey (trepmal)
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 1 year ago #

    Unfortunately, the plugin doesn't allow for this particular kind of alt text scenario. The plugin will try and get the alt text from the attachment post meta (for images from thumb or attached, so you can edit this in the media library), from the original image tag (for images from first), or from the custom field (for images from customfield).

    In the case of customfield, you must also provide the name of the custom field the alt text can be found in

    [image from=customfield cfname='name-of-custom-field-with-thumb' cfnamealt='name-of-custom-field-with-alt']

    And you can supply backup alt text like this

    [image from=thumb alttext='text used if none other is found']

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic