Forums

[Plugin: Magic Fields] Duplicated Field on Image Array (3 posts)

  1. McEnroe
    Member
    Posted 6 months ago #

    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!

  2. McEnroe
    Member
    Posted 6 months ago #

    anyone? :(

  3. hunk
    Member
    Posted 6 months ago #

    here the answer https://groups.google.com/forum/#!topic/magic-fields/tDUeohD1FaE

Reply

You must log in to post.

About this Topic