• Resolved Christian Frick

    (@christian-frick)


    Hi all

    Is there a way to get the ID of the just added attachment within the action “maxgalleria_after_add_image_to_gallery”? Sure, I could run a query and search for an entry having equal gallery_id, url, title, caption, description and alt_text. However this does not handle duplicate entries.

    Would it be possible to add the attachment ID in a future release?

    Thanks a lot

    Christian

    https://www.ads-software.com/plugins/maxgalleria/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author maxfoundry

    (@maxfoundry)

    Hey Christian,

    Ping us at [email protected].

    Thanks!

    Plugin Author AlanP57

    (@alanp57)

    You could try using the get_children function using the galleria ID as the parent ID and then search result for the last child attachment.

    Thread Starter Christian Frick

    (@christian-frick)

    Thank you Alan

    I finally used maxgalleria_after_add_images_to_gallery, used the get_children function and ran it for all children.

    Cheers, Christian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get attachment ID for "maxgalleria_after_add_image_to_gallery" action’ is closed to new replies.