Support

Account

Home Forums ACF PRO Can I use acf_form() to create a comment instead of a post? Reply To: Can I use acf_form() to create a comment instead of a post?

  • Ok, well after a bit of fiddling I’m guessing acf_form() isn’t going to work because comments aren’t posts (guess sort of obvious now that I think about it).

    Anyways, my issue has changed a bit as I’ve progressed.

    What I’ve done so far

    1) Use ‘Location Rules‘ to target a specific comment form so that I can add in ACF fields

    2) Use the code outlined in the StackOverflow thread titled, How to implement AJAX commenting in WordPress,’ in order to be able to submit my form via AJAX

    What I need help on

    1) How can I get my ACF fields to appear before the comment textarea field?
    …I’ve tried to change both the ‘Positon’ and ‘Order No.’ in my field group settings, but this doesn’t seem to have any effect
    2) When submitting my form, how can I make use of something like the acf/save_post action hook in order to update comment_meta from my ACF field? (I would also like to update the comment’s parent post_meta)

    Thanks in advance!