Home › Forums › General Issues › Dynamically set form ID › Reply To: Dynamically set form ID
Hey man!
If you want to every post on page have it’s own form, you can do something like this in your acf_form() function:
acf_form(array(
'form_id' = 'form_' . get_the_ID(),
'post_id' = get_the_ID()
[...]
));
Assuming that you are going to place that inside the loop like that
while(have_posts()): the_post()
P.s.: Sorry about my english
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.