Home › Forums › Add-ons › Gallery Field › Gallery plugin does not return array › Reply To: Gallery plugin does not return array
Hi @dom
Because you are saving / loading data from the options page add-on, you must also remember to specify the $post_id parameter as shown in this doc:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-an-options-page/
Basically, the get_field should look like:
get_field('gallery', 'option')
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.