Support

Account

Home Forums Backend Issues (wp-admin) Edit checkbox selection – update_field() Reply To: Edit checkbox selection – update_field()

  • The value your including in the call to update_field in incorrect then. What you have there is the field settings for the entire field. Look at the documentation for update_field here https://www.advancedcustomfields.com/resources/update_field/

    What you want will look something like this

    
    update_field('field_0123456789', array(1,2,5), $post_id);