Thank you Jdorner but when I var_dump the $_POST before updating my post my field has only one value instead of an array with the multiple values selected before.
In your exemple you write in hard code the values before updating the field but I cant.
I might have poorly explain my problem and I’m sorry for that.
I created a multiple values select field but when I update my post only one value is saved in the DB. I wrote a tiny script to see the value of the select on change and when I selected two or three values, the select values are good. But when I update my post, the value in $_POST is not correct, there’s only the first value selected.
I’m sorry it’s a little bit confusing but I dont really know what to say.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!