• Hi,

    I am having problems showing the images. It always shows only the first image i uploaded.

    the code is this:

    <?php
    $field_value = simple_fields_fieldgroup("bildtextbox");
    $field = get_post_meta( $post->ID, 'bild', true );
    $file_info = simple_fields_value("bild");
    foreach ($field_value as $value) {
    
    echo "<div class='col-md-6'><div class='whiteBox imageText'>";
    
    if( empty( $field ) )
    {
    echo $file_info["image"]["whiteBoxPic"]; 
    
    echo "<div class='whiteText'><div class='headline'><h2>" . $value['uberschrift'] . "</h2></div>";
    
    echo "<div class='text'><p>" . $value['text'] . "</p></div>";
    echo "<a href='" . $value['linkurl'] . "'>" . $value['linkbezeichnung'] . "</a>";
    
    echo "</div>";
    }
    
    else {echo "<div class='whiteText no-image'><div class='headline'><h2>" . $value['uberschrift'] . "</h2></div>";
    
    echo "<div class='text'><p>" . $value['text'] . "</p></div>";
    echo "<a href='" . $value['linkurl'] . "'>" . $value['linkbezeichnung'] . "</a>";
    
    echo "</div>";}
    
    echo "</div></div>";
    
    }
    ?>

    Thank you, Jette

    https://wordpress.org/plugins/simple-fields/

Viewing 1 replies (of 1 total)
  • hi
    i have proplem about this supject.. but not he same… i dont know how can me rite code like this to get any of repetable value of image and i cant understand above code
    any help ??

Viewing 1 replies (of 1 total)

The topic ‘Show repeatable image in field group’ is closed to new replies.