Support » Plugin: Media Library Assistant » Duplicated pictures Alt Tag

  • Resolved AlgerieDeals

    (@algeriedeals)


    Hello,
    I have over 2800 Pictures in my Library, and I’m not willing to edit them manually one by one. I have used a template to bulk edit all Alt tags in one shot that is great (template:([+parent_title+])) but now because some posts have multiple pictures all of them have the same Alt Tag that is not good for SEO as it is a kind of keyword stuffing.

    Would the following be possible?

    1- Flush all Alt tags
    2- Give an ALT tag (post name) to the first image of the post and leave the rest without alt tag (The bulk way)?

    Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for explaining the SEO implications for your application.

    Technically, the ALT Text is supposed to describe the image for screen readers as a substitute or the image itself. Leaving the ALT Text empty might also harm SEO scoring.

    You could change your template to something like

    
    template:(([+parent_title+] - [+title+])|([+title+]))
    

    That would generate a unique, descriptive ALT Text to every image whether attached or not.

    If you would prefer your original goal generating a value for just the first image, it can be done with a bit of PHP code that hooks the filters provided by the MLA mapping functions. If you want to pursue that solution let me know and I can give you more specific help.

    Thank you for answering,

    Indeed, a unique description will be great. I’m probably doing something wrong, I tried the code you provided me with template:(([+parent_title+] – [+title+])|([+title+])) but does not change the current Alt Tags values.

    • This reply was modified 3 years, 5 months ago by AlgerieDeals.

    Hi,
    I have used the below template to create a unique description by adding a different number to each attached picture.

    template:([+parent_title+] – [+ID+])

    The problem I’m having now is that the template is not automatically applied on new uploads.

    Here is the setting:

    Enable IPTC/EXIF Mapping when adding new media: ON
    Enable IPTC/EXIF Mapping when updating media metadata: ON
    IPTC Value : None (select a value)
    EXIF/Template Value : template:([+parent_title+] – [+ID+])
    Priority : EXIF
    Existing Text : Replace

    Any idea?

    Thank you.

    • This reply was modified 3 years, 5 months ago by AlgerieDeals.
    • This reply was modified 3 years, 5 months ago by AlgerieDeals.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for posting the details of your template and mapping rule.

    I entered your rule in my test system and it is working for me, but I believe success depends on how you are uploading the file(s) and attaching them to a parent post/page. The method I used was:

    1. Edit the postpage
    2. Click “Add Media”
    3. In the Insert Media popup window, click the Upload files” tab
    4. Drag and drop a file into the upload area
    5. Insert the file into the post

    If you can tell me the process you are using to upload/attach the files I can try that method and give you more specific help.

    I have a classified ads website that uses custom posts; pictures are uploaded by users on the front-end. It’s not really a big issue as I can update all Alt tags in one shot with a simple button.

    Thank you very much for your help.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the additional information. The “IPTC & EXIF Processing Options” section of the Settings/Media Library Assistant Documentation tab contains some information for adding mapping support when new items are uploaded in the front-end. It’s possible that you can solve your problem by adding an entry to your wp-config.php file.

    If you can tell me which front-end uploader you are using I can investigate further. Let me know if you are interested in more specific help.

    Hello,
    I use a theme called classipress , users have to login to publish their ads
    Live demo here (by default you are logged in):

    http://demos.appthemes.com/?theme=classipress

    Thank you.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the details on your file uploader. I went to the demo site and ran a couple of experiments. The theme supports two upload methods: 1) Flash uploader and 2) Browser uploader.

    With the default Flash uploader it looks like an AJAX request is sent with an “action” value of “app_plupload_handle_upload”. You may be able to configure MLA to work with this method by following the instructions in the “IPTC & EXIF Processing Options” section of the Settings/Media Library Assistant Documentation tab. It says:

    Some plugins support file uploads from the WordPress “front end”, usually by using the WordPress “Ajax” support. To enable mapping when these plugins are used you must add an entry to your wp-config.php file so MLA will load the mapping code:

    define( ‘MLA_AJAX_EXCEPTIONS’, ‘wfu_ajax_action,upload_ugc’ );

    The above example adds the “action” values for two popular file upload plugins, WordPress File Upload and Frontend Uploader respectively. Once the entry is added MLA will run the mapping rules when it detects file upload operations from the other plugin(s).

    For your specific theme the entry would be:

    
    define( 'MLA_AJAX_EXCEPTIONS', 'app_plupload_handle_upload' );
    

    If you add that line to your wp-config.php file you may be able to automate the processing of file uploads. If you copy the line above, make sure you have plain single-quote marks when you paste it into the file. The support forum software sometimes “improves” things by substituting curly/smart quotes, which won’t work in the configuration file.

    If you get a chance to try this fix, let me know if it works for you. Thanks!

    Hi,
    I have tried the code in my wp-config.php file as provided (with single-quote marks) but did not work.
    Thank you.

    • This reply was modified 3 years, 4 months ago by AlgerieDeals.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for trying my suggested fix; I regret it did not solve your issue.

    I hope you understand that I cannot afford to purchase premium plugins and themes simply to provide support for my own plugin. If you can get the vendor to send me a copy for my testing I am happy to work with them to investigate further.

    If you are interested in continuing to work on this issue I have two alternatives to suggest. First, you could give me a temporary account on your site so I can have a look at the problem. I realize that may not be possible. Second, you could activate some MLA debug logging that would tell me more about what is going on.

    For either alternative it would be great if you activated the MLA Debug tab and logging. You can find more information in the “MLA Debug Tab” section of the Settings/Media Library Assistant Documentation tab. If you send me your contact information I can give you more detailed instructions and an email address where you can send log files and other information. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    Thanks for your continued help with this issue!

    Hi,
    I can provide you with all the information you need; it’s just because I made you work too much I don’t want to bother you more and have you spend your valuable time to try to help me. Even I cannot automate the process, your plugin is still very helpful for me, so long as I can bulk edit pictures I can simply run the plugin periodically and fix them.

    Thank you very much for your outstanding support.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your response. It is never too much work, because I always learn something I can use to benefit many MLA users.

    Send me your contact information and I will do what I can to make sure that the mapping rules run when your users use the front end uploading. Thanks for your help.

    Plugin Author David Lingren

    (@dglingren)

    I have uploaded a new MLA Development Version dated 20170315 that adds a new value to the MLA_AJAX_EXCEPTIONS constant defined for this earlier topic:

    Automatically adding the author as a category

    If you add define( 'MLA_AJAX_EXCEPTIONS', 'always' ); to your wp-config.php file it may solve the MLA mapping problem when users upload new files to your site.

    To get the Development Version, follow the instructions in this earlier topic:

    Shortcode not working in (special) widget

    If you install the Development Version and update the ‘MLA_AJAX_EXCEPTIONS’ constant, let me know if it works for you. Thanks!

    Plugin Author David Lingren

    (@dglingren)

    It has been over a month since the last post in this topic. I hope you found the Development Version helpful or have another solution for your application.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding your front end uploading application.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Duplicated pictures Alt Tag’ is closed to new replies.