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.