Hi, please tell me how to correctly write a loop in PHP + html markup, because for my cant now every item in item'e
$values = rwmb_meta( $field_id ); foreach ( $values as $clone ) { foreach ( $clone as $value ) { echo $value['name']; echo $value['address']; echo $value['email']; } } <div class="new-item"> <div class="new-item__name">Здесь name над</div> <div class="new-item__adress">Здесь address</div> <div class="new-item__email">Угадайте что тут должно быть:D</div> </div> Values stores for example 5 elements of each element its properties. Then you need 5 markup .new-item that each had its own name
I just can not put the structure correctly
что бы каждая имела свой nameas this name should be formed? You showed threeechoand a final html you and divas, and classes. Did you show what you want? - Anton Shchyrov