Support

Account

Home Forums General Issues update_post_meta not working with acf Reply To: update_post_meta not working with acf

  • Hi @sanderjansma

    There are a few ideas in the above code which show what the isue could be:
    1. the action ‘save_post_reviews’ is run BEFORE the save_post so ACF is overriding your value. Have you placed any debug code in your function to stop the page loading and look at your DB to see if the code worked?
    2. Please use the update_field function instead of update_post_meta. This is ACF friendly.

    Basically, you will need to debug the issue to find out if the value is being saved, if the value is being overridden, etc.

    Thanks
    E