• Resolved silafu

    (@silafu)


    Hello,

    I have a group named “Images” with a field that can be duplicated named “home-image”.

    For text fields this is working:

    $concertdates = get_field_duplicate(‘konzert-date’);
    foreach($concertdates as $concertdate){
    echo $concertdate;

    For the duplicate fields in group “Images”, the code bellow returns “array”.
    $homaimages = get_field_duplicate(‘home-image’);
    foreach($homeimages as $homeimage){
    echo $homeimage;

    Any ideea why?

Viewing 1 replies (of 1 total)
  • Thread Starter silafu

    (@silafu)

    I don’t know why but this works

    <?php
    $images = getFieldOrder('home-image');
    foreach($images as $image){
     echo '<img src="';
     echo get('home-image',1,$image);
     echo '"/>';
     } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Magic Fields] Duplicate image field in a group’ is closed to new replies.