Home › Forums › Add-ons › Gallery Field › Bring gallery image into have post array › Reply To: Bring gallery image into have post array
Hi @BeeBlu
The issue is that you are passing the 2 false
parameters to the get_field
function. This will stop ACF from formatting the value and returning data such as ‘url’ or ‘large’.
Perhaps you should change your code to:
$images = get_field('gallery');
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.