Support

Account

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

Helping

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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.