hi,
i've got a problem displaying images uploadet from the frontend to a clonable group. if i use the "single image" field and choose the images from the media library from the backend i can use...
function subfield_preset () {
$reps = rwmb_meta( 'tage' );
asort ( $rep['repeater_datum'] );
if ( ! empty( $reps ) ) {
foreach ( $reps as $rep ) {
if ($rep['repeater_datum'] <= date("Y-m-d")){
$image=wp_get_attachment_image($rep['repeater_bild'],array('700','700'));
if ( ! empty( $image ) ) {
echo '<img width="700" height="700" src='.$image.'<br>';
}
}
else{
//do nothing
}
}
}
}
to display the image on the frontend.
but how do i display the image if it is uploaded through the frontend? i feel like i tried everything.