I am setting up a global comment form on our page, using the standard WordPress comment_form() function. The form is just showing on one landing page, then I have a ACF select field, with a couple of pages as options (page_ID : Title).
I’m struggling with finding any information about how I can dynamically use this select option ID and add it to the comment_form.
comment_form( $comments_args, page_id );
I have read that one could do it with AJAX or perhaps a function to update the comment data on save (in effect a second function). But I can’t figure out how to get it to work.
If anyone has done something similar, I would be happy to hear about it!
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users