Support

Account

Home Forums Front-end Issues Multiple checkbox (array in front-end) Reply To: Multiple checkbox (array in front-end)

  • <?php
    $field_name = "service_for";
    $fields = get_field($field_name);
    
    if($fields){
        echo '<div class="col-xs-4 col-lg-3"><strong>Service for:</strong></div>';
        echo '<div class="col-xs-8 col-lg-9">';
        foreach ($fields as $field){
    	    echo $field['value'] . ' ';
        }
        echo '</div>';
    }
    ?>