As I said, the gallery field is one of the more complicated fields.
Yes, you would replace THE_NAME_OF_YOUR_GALLERY_FIELD with the name of your gallery field and then where it says // do something special for gallery fields you would add code that output the gallery the way you want.
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future. https://t.co/HahJUCcyH4