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.
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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.