Home Forums Backend Issues (wp-admin) update field with multiple values


update field with multiple values

  • Hello,
    I’m trying to do something and I don’t know what is the correct syntax.
    I’m sure it’s pretty simple but I was not able to find the answer in the documentation.
    Here’s my issue :
    I have a custom field called “parent”, which can contain one or more users.
    Everything is fine when i do something like :
    update_field('parent', $user_id_parent, $post_id);
    but when i do it twice (to update with the 2nd parent), then the 1st one is replaced.
    In other words, I’m not able to add 2 parents to my child entry.

    Could you please help me ?
    Thanks a lot.

  • hello ? Anybody could help me ?
    I’m really stuck with this thing…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘update field with multiple values’ is closed to new replies.