• Resolved cuckoofairweb

    (@cuckoofairweb)


    Hi David – hope you are keeping safe,

    A couple of years ago you helped me setup a gallery based around EXIF data extracted by some rules into WordPress fields. See the link above.

    I’ve just uploaded some new (old) photos from 2005 and the processing seems to have gone a bit awry. The photos are here https://cuckoofair.co.uk/new-gallery?current_id=176

    It’s the Title field that is missing the year field and also a spurious +]). Hover over a photo to see the title and then click say another year eg 2011 to see wha it should look like.

    The processing rule for the Title is

    template:([+exif:Artist+])( at [+exif:Keywords+]| at [+exif:ImageDescription+])( in [+exif:DateTimeOriginal,date(‘Y’)+])

    It looks like the last set of ()’s isn’t working.

    However, the rule for the Att Tags that is:
    template:([+exif:DateTimeOriginal,date(‘Y’)+])
    does appear to be working!

    Many thanks

    Paul

    The page I need help with: [log in to see the link]

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

    (@dglingren)

    Good to hear from you again, and yes, careful and safe are top of mind.

    Thanks for your report and for posting the text of your content templates; very helpful. You have uncovered an MLA defect I introduced in some v2.84 changes to the way templates are parsed.

    I have uploaded a new MLA Development Version dated 20210118 that corrects the problem. You can find step-by-step instructions for using the Development Version in this support topic:

    PHP Warning on media upload with Polylang

    It would be great if you could install the Development Version and let me know if it works for you. Thanks again for alerting me to this MLA defect.

    Thread Starter cuckoofairweb

    (@cuckoofairweb)

    Hi David,

    I can confirm that the development version 20210118 fixed the issue. Many thanks for quickly fixing it.

    By the way, a minor question I hope you can help with, on the gallery page [link above] how can I display, suitably styled eg as a heading, the name of whatever category is being displayed?

    Cheers

    Paul

    Plugin Author David Lingren

    (@dglingren)

    Thanks for confirming that the fix is working for you.

    You asked “how can I display, suitably styled eg as a heading, the name of whatever category is being displayed? It looks like you are using Justified Image Grid to compose the gallery display, so a custom markup template won’t help you, but here is a trick you might find useful.

    First, add the term name to your tag cloud HREF arguments, using the mla_link_href shortcode parameter, e.g.:

    mla_link_href='{+page_url+}?current_id={+term_id+}&current_name={+name,url+}'
    

    Second, add an [mla_gallery] shortcode at the location you want the heading to appear:

    [mla_gallery post_mime_type="a-bad-type" mla_nolink_text="{+template:(<h3>{+request:current_name+}</h3>)+}"][/mla_gallery]
    

    The “trick” is using post_mime_type="a-bad-type" to force an empty gallery, then using mla_nolink_text to generate whatever markup you want to add to the page.

    I hope that gives you what you need to complete your gallery pages. I will mark this topic resolved when the fix goes out in the next MLA update.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v2.95, which contains the fix for the template parsing defect.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the fix. Thanks for your patience and helping me find and fix this MLA defect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘EXIF Mapping no longer works..’ is closed to new replies.