Update ACF checkbox fields from frontend?

3 weeks ago 22

I person a signifier that has a checkbox made done ACF,

<?php $newfield = get_field_object('field_614b59da0b09b'); $newclasses = $newfield['choices']; foreach( $newclasses arsenic $value ): ?> <input type="checkbox" name="<?php echo $value; ?>"> <label for="<?php echo $value; ?>"><?php echo $value; ?></label> <?php endforeach; ?>

Usually you could update elemental input fields with update_field('teacher', $_POST['teacher'], $postID); but however bash you dainty the checkboxes? Thank you.

Read Entire Article

Our Ventures