Support

Account

Home Forums General Issues update_field(); not updating either using field key or field name

Helping

update_field(); not updating either using field key or field name

  • Hey, Guys, I’m trying to update a custom field value on a custom post, when inserting the post the update_field() with field name, works fine, but when trying to update the value of that post nothing happens, I’ve tried with a field key and same problem.

    //With field name
    update_field(“banner_image”, $event[“IMAGE_LINK”], $id_event);

    //With Field key
    update_field(get_field_object(‘banner_image’, $id_event)[“key”], $event[“IMAGE_LINK”], $id_event);

    • Jeff

    • May 22, 2020 at 7:49 am

    @elmzelji Have you resolved this issue yet?

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.