I’m trying to add ‘Citation Author’ and ‘Citation URL’ fields to the images in the media gallery (see screenshot for setup). This part seems to be working as in the media gallery I have the option to add ‘Citation Author’ and ‘Citation URL’ to any image inside the media gallery.
I’m having trouble figuring out how to retrieve these values from the image variable. Most of images are called like this:
The examples I have seen all use the post Id or are based on the image being a featured image, which is not the case here. I have pages with sections that have ACF image fields and I’m calling them with get_field(“image_name”);