Support

Account

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:
    array(0) {
    }

    I tired recreating another gallery field and it is not working. I have other field types that work without any problem.

    Thank you