0 ){
$data = get_posts(array(
'post__in' => $acf_mc_attachment_ids,
'post_type' => 'attachment',
'orderby' => 'post__in',
'order' => 'ASC',
'numberposts' => -1
));
} else {
$data = array();
}
?>
$item){
$url = wp_get_attachment_url($item->ID);
$title = get_the_title($item->ID);
$filename = get_attached_file( $item->ID );
$filetype = wp_check_filetype( $filename );
$type = $filetype['ext'];
$downloads = (int) get_post_meta( $item->ID, '_acf_mc_downloads', true );
$size = size_format( filesize( get_attached_file( $item->ID ) ), 0 );
acf_mc_cluster_field_group(false, $item->ID, $fname, $key, $url, $title, $type, $size, $downloads, true, false, $index+1);
}
acf_mc_cluster_field_group(false, 0, $fname, $key, '', '', '', '', '', false, true, count($data) + 1);
}
?>