Show repeatable image in field group
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Show repeatable image in field group’ is closed to new replies.