• Resolved rignano

    (@rignano)


    I have used Advanced Custom Fields plugin to add custom fields to my image media attachments. The fields I have added are
    image-location: Where photograph was taken (text field)
    image-date: Date photograph was taken (text field)

    I would like these fields to display in my foogallery/foobox captions (additional to the title and description that area already displayed).

    I assume I need to edit the foogallery theme files so that these new fields are pulled in along with the title/description. These can then be passed on to the foobox lightbox. I am not sure how to do this and just wondered if anyone had any pointers?

    Thanks.

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

    (@bradvin)

    hi @rignano

    I think this will be possible with a bit of code. You should not have to edit the gallery template files, but rather hook into foogallery_build_attachment_html_caption filter

    I will put some documentation together for this filter and post it here when it is done. I will use ACF to match you scenario

    Thread Starter rignano

    (@rignano)

    I found the code for the custom caption plugin on GitHub. I was able to just add the ACF fields into that and worked fine.

    Many thanks.

    Hi @rignano

    I’m trying to do a similar thing to yourself but cannot fathom out the necessary code. If you had a moment, would you be able to post a sample of what you did to get your custom fields to appear in the foobox caption?

    Many thanks if you are able.

    Plugin Author bradvin

    (@bradvin)

    @qddesign advanced custom captions are built into FooGallery PRO.

    The latest version, which we are releasing end of May, will also include full support for ACF and PODS

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Including custom fields in captions’ is closed to new replies.