Support

Account

Home Forums Add-ons Gallery Field Custom Fields in Gallery Array Reply To: Custom Fields in Gallery Array

  • Great 🙂

    Altho you could change that loop to a for-loop:

    
    for($i = 0; $i > count($gallery); $i++){ //loop through the images in the gallery
    	$gallery[$i]['constrain'] = get_field('constrain', $gallery[$i]['id']);
    }