I have a form that has a checkbox made through ACF,
<?php $newfield = get_field_object('field_614b59da0b09b');
$newclasses = $newfield['choices'];
foreach( $newclasses as $value ): ?>
<input type="checkbox" name="<?php echo $value; ?>">
<label for="<?php echo $value; ?>"><?php echo $value; ?></label>
<?php endforeach; ?>
Usually you could update simple input fields with update_field('teacher', $_POST['teacher'], $postID);
but how do you treat the checkboxes?
Thank you.