Support

Account

Home Forums General Issues How to populate all values even if it includes select Reply To: How to populate all values even if it includes select

  • 
    
    foreach( $fields as $field )
    {
    $value = get_field( $field['name'] );
    if (is_array($value)) {
      $value = implode(', ', $value);
    }
    
    echo '<dl>';
    echo '<dt>' . $field['label'] . '</dt>';
    echo '<dd>' .$value . '</dd>';
    echo '</dl>';
    }