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 🙂
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 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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.