Home › Forums › Bug Reports › Gallery Field returns empty Array › Reply To: Gallery Field returns empty Array
I’m using this
$gallery = get_field('test_gallery', $post_id); echo '<pre>'; var_dump( $gallery ); echo '</pre>';
and this for the one in the option page:
$gallery_option = get_field('test_gallery_option', 'option'); echo '<pre>'; var_dump( $gallery_option ); echo '</pre>';
In both cases the result is the following:
I tired recreating another gallery field and it is not working. I have other field types that work without any problem.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.