Get the caption of images in Slider

Hello,
I’ve created a custom field Gallery with ACF for each article.
I display the images in a slider. I’d like to display the caption for each image under each one, but I can’t find the dynamic content to display the caption.

Can you tell me how to proceed?

Thanks a lot!

Hey @Jloupf,

Thanks for reaching out!

To access the caption on an image in the ACF gallery, the return format should be an image array. Then the looper provider should be like this one:
Type: Dynamic Content
Input: {{dc:acf:post_field field="gallery"}}

and to display the caption, you can use this dynamic content

{{dc:looper:field key="caption"}}

For more information, you can check these articles.

Hope that helps.

Thank you very much @marc_a , it works perfectly.

Hi @Jloupf,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.