Home › Forums › General Issues › acf_form – Create one or multiple Posts at once › Reply To: acf_form – Create one or multiple Posts at once
I believe it’s possible, but you need an advanced knowledge of PHP to do it. Instead of multiplying acf_form(), I think you can use a repeater field so you can add and remove the number of posts you want.
After that, you need to use the acf/save_post hook and loop through the posted repeater data using the $_POST[‘acf’] variable then save it using the wp_insert_post() function.
I hope this makes sense. Thanks!
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.