Multiple IPTC properties into alt text?
-
This looks like a great plug-in, extremely powerful, but a tad complicated. I can’t figure out if there’s a way to concatenate multiple IPTC properties (keywords, photo city, photo state, etc.) into the alt text property, automatically?
-
I am not entirely sure where “the file name and my name” are coming from, but I went back and looked at your rule. You might get better results if you change
Existing text: keep
toExisting text: replace
. Give that a try and let me know if it helps.You mentioned “Imagify” – do you mean this plugin: Imagify Image Optimizer? If you’re still having trouble I can look into that as a possible source.
ah ha! 1) I disabled Imagify and nothing changed (still flakey) 2) By selecting the replace option, the alt text immediately populated. I deleted and re-uploaded the photo a few times and now it always immediately populates. Yippee!! Thanks!
Thanks for the good news. I hope that completes the topic for you.
Thanks as well for the reference to EXIF Pilot. I found the vendor’s web site and downloaded the latest version (5.1.1):
It looks like a useful addition to my toolkit.
Ran into another problem…not sure if this can be fixed on your end or not. But I installed the WP/LR Sync plug-in, which lets you sync your photos between Adobe Lightroom and the WP media library. It automatically uploads photos…it’s pretty slick.
The problem is the automated upload process does NOT trigger your IPCT rule, so the alt text is empty. I can manually click on the map button in the library and it populates. But if I’m refreshing/upload dozens of photos, manual becomes a headache.
Is it possible to get your rules triggered by this method of media uploads?
WP/LR Sync is a great plugin and I have had a good dialog with the developer that started with this earlier support topic:
The first fix you should try is adding the
DEFINE
statement to yourwp-config.php
file. That should load the code MLA requires to process the mapping rules.I have not been able to do any direct testing of this combination because I cannot afford to purchase Adobe Lightroom simply to provide support for my own, free, plugin. If you still have trouble after trying the above fix perhaps I can add some debug/log code to give me what I need to investigate further. Thanks for your understanding and your help in trying the recommended fix.
I’m a techie but not a developer so can you be a bit more specific about the define statement I need to add? I can easily edit the wp-config.php file if I know exactly the line(s) to add.
And thanks for your support…you are an amazing plug-in author! I’ll gladly donate to a paypal if you have it.
The define statement is in the earlier topic. Jordy recommends:
define( 'MLA_AJAX_EXCEPTIONS', 'ping,presync,sync,sync_collection,list,delete,delete_collection,list_unlinks,link,unlink,linkinfo,linkinfo_upload,userinfo,list_wpids' );
Give it a try.
Thanks as well for your offer to donate to our fair trade work. There’s a Donate button at the top-right of the Settings/Media Library Assistant screen. Let me know if it works for you.
No dice.
Sigh…
I have written a message to the WP/LR Sync author asking for his thoughts. You might try raising a topic in his support forum and referencing this topic to add your voice to mine.
As I wrote, all I can think of to do is add some diagnostic code to MLA to see more about what’s going on. I will post an update when I have progress to report.
Thanks for your efforts and your patience.
Thanks for your patience; I have uploaded a new MLA Development Version dated 20171102 that contains more debug logging for investigation this problem. To get the Development Version you can follow the instructions in this earlier topic:
PHP Warning on media upload with Polylang
Before you go to the trouble of installing the Development Version you can try one more possible fix. Change your
wp-config.php
file to include:define( 'MLA_AJAX_EXCEPTIONS', 'always' );
That will unconditionally load all of MLA for AJAX calls regardless of the
action
value. If that works, let me know. Either way, it would be helpful if you install the Development Version, then activate the MLA Debug tab and logging and run a WP/LR Sync test. You can find more information in the “MLA Debug Tab” section of the Settings/Media Library Assistant Documentation tab.For your specific problem, you must add one line to your
wp-config.php
file:define( 'MLA_DEBUG_LEVEL', 1 );
Once that’s done the Debug tab should be added to the Settings/Media Library Assistant screen. On that screen add these settings:
PHP Reporting 0x7FFF MLA Reporting 0x22
Don’t forget to scroll to the bottom of the screen and click “Save Changes”. On the Debug tab you can view the Error Log, reset it to empty out old messages, and download the content to a text file.
The
MLA Reporting 0x22
activates logging for AJAX calls and WordPress REST API calls, both of which are used by WP/LR Sync to do its work. Once these settings are in place, run one or more tests uploading images with WP/LR Sync.After your tests are complete set
MLA Reporting 0
. That will disable logging but keep the Debug tab active for future use.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:
Let me know if the above instructions make sense and can be done on your site. Once I have more details about the problem I can investigate further. Thanks for your persistence.
Wow thank you very much! Followed it to a “T” and sent you my email via the contact form. Thanks for being so responsive!
Thanks for working with me offline to investigate the problem and test the fix. Together, we discovered that the problem was specific to the ALT Text field and was caused by a bit of code in the WP/LR Sync plugin.
I passed this on to the WP/LR Sync developer and I am delighted to report that his response was quick and effective; the latest version contains the fix, as reported here:
MLA + WP/LR Sync update/mapping issue
I am leaving this topic resolved, but please update it if you have any trouble with the new version. Thanks again for your help with this adventure!
- The topic ‘Multiple IPTC properties into alt text?’ is closed to new replies.