• 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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Magic Fields] Duplicated Field on Image Array’ is closed to new replies.