Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Galeria ACF PRO Shortcode

Shortcode Galerii ACF by https://jaworowi.cz

// Add Shortcode
function jcz_galeria_f( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'id' => 'all',
		),
		$atts,
		'jcz_galeria'
	);

	// Return custom embed code
	
	$image_ids = get_field($atts['id'], false, false);
	$shortcode = '[' . 'gallery ids="' . implode(',', $image_ids) . '"]';
	
	return do_shortcode( $shortcode );

}
add_shortcode( 'jcz_galeria', 'jcz_galeria_f' );