Home › Forums › Add-ons › Gallery Field › Gallery field return images IDs › Reply To: Gallery field return images IDs
I had this problem too when registering the gallery field programatically.
When I called :
get_field('gallery_field_name',$post->ID)
I got ID’s instead of image arrays.
The Problem was, that I only registered the fields on the dashboard through checking for:
is_admin()
before calling:
acf_add_local_field_group();
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.