Support

Account

Home Forums Front-end Issues How to Update comments acf fields from front end. Reply To: How to Update comments acf fields from front end.

  • Hi @dhruva81

    I believe that’s because you didn’t pass the comment ID. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/. So, it should be something like this:

    $options = array(
        // "99" is the comment ID
        'post_id' => 'comment_99',
        'fields' => array('field_5863c431084e6'),
    );
    
    acf_form($options);

    Where “99” is the comment ID. To get the comment ID, kindly check this page: https://www.advancedcustomfields.com/resources/get-values-comment/.

    I hope this helps 🙂