ACF’s gallery with Divi native gallery module

Description and placement:

This code will use ACF's galley field with Divi's native gallery module. Place this code snippet in your single template file located in your child theme directory.

PHP