WAIT: ACF Gallery Query editor PHP

Bricks v1.11.1

Why does this not work?

$acf_gallery_images = get_field( ‘gb-post-archive__gallery’ );

if ( $acf_gallery_images ) {
return [
‘post_type’ => ‘attachment’,
‘post_status’ => ‘inherit’,
‘posts_per_page’ => 100, // a large number
‘no_found_rows’ => true,
‘post__in’ => $acf_gallery_images,
‘orderby’ => ‘post__in’,
];
} else {
return [
‘post__in’ => [ 0 ],
];
}

Use in the Query Editor with an image element below using dynamic tag {post_id}
Code Signatures are valid.

Hello @mizzinc,

can you make a few screenshots or record a video, on what is your setup (acf settings and where you have field + structure in Bricks) and the desired outcome, so that I can replicate this locally?

Thanks,
Matej