Title: [Plugin: Magic Fields] Duplicated Field on Image Array
Last modified: August 20, 2016

---

# [Plugin: Magic Fields] Duplicated Field on Image Array

 *  [McEnroe](https://wordpress.org/support/users/mcenroe/)
 * (@mcenroe)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-magic-fields-duplicated-field-on-image-array/)
 * Hello…
 * I’ve been using Magic Fields and I love it, but I have one problem I can not 
   fix. Hopefully someone will be able to help me out.
 * I have created an array to store some resizing information for the pictures I
   upload, I set up the field to be duplicated and when I call the image inside 
   the foreach to get all the duplicated fields nothing happens. If I do it without
   the foreach it works like a charm but when I call the field inside the foreach
   nothing happens…
 * This is what I did:
 *     ```
       <?php
       	$fotos = get_field('imagen_slider');
               $foto_params = array("h" => 426, "w" => 760, "zc" => 1, "q" =>100);
   
       	foreach($fotos as $foto){
       		echo '<div class="scrollEl">';
       		echo get_image($foto,1,$foto);
       		echo '</div>';
       	}
       ?>
       ```
   
 * Can someone tell me if there’s something wrong?
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [McEnroe](https://wordpress.org/support/users/mcenroe/)
 * (@mcenroe)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-magic-fields-duplicated-field-on-image-array/#post-2392648)
 * anyone? 🙁
 *  [hunk](https://wordpress.org/support/users/hunk/)
 * (@hunk)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-magic-fields-duplicated-field-on-image-array/#post-2392673)
 * here the answer [https://groups.google.com/forum/#!topic/magic-fields/tDUeohD1FaE](https://groups.google.com/forum/#!topic/magic-fields/tDUeohD1FaE)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Magic Fields] Duplicated Field on Image Array’ is closed to 
new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [hunk](https://wordpress.org/support/users/hunk/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-magic-fields-duplicated-field-on-image-array/#post-2392673)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
