// Generate and do shortcode.
// Note: The following string is split to simply prevent our own website from rendering the gallery shortcode.
$shortcode = sprintf( ‘[‘ . ‘gallery ids=”%s”]’, esc_attr($images_string) );
echo do_shortcode( $shortcode );
$size = ‘full’; // (thumbnail, medium, large, full or custom size)
if( $images ): ?>