Home Forums ACF PRO Custom Fields on Attachments Reply To: Custom Fields on Attachments

  • I have added some custom fields to all attachments that are uploaded to the Media Library.

    Text fields such as Location, Date, and some custom Tags.

    I then have a custom post type of Photo Archive in which the admin can create a new post, upload as many images as they wish, which will then display on the single post page. The images are uploaded using the ACF Gallery field.
    Each image will have a tag or tags, as well as Location and Date information attached to it.

    What I now require is to get that information.

    So far I have created this staging site:

    If you see where it says Filter by tags; this is where I need to get all the tags used from each image, from within the single post.

    I did take a look at the code here but not sure where to put it or how to use it:

    Any advice would be much appreciated.