Elliot – thank you, thank you, thank you! I was trying to use the Gallery plugin with the Repeater plugin and I was having the same problem. I couldn’t figure out why the original WP Gallery code example wouldn’t work with get_sub_field.
It took me quite a while to find this thread. As a suggestion, you might consider putting this code example in either the Gallery or Repeater documentation (or both).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users