This *feels* like it’s getting close. I’d started something similar that was doing pretty much exactly this. It’s still creating the posts in the backend though.
I’d been doing the if statements using “church_name” and “church_name2” fields. Exactly the same results though. Yours, using the post type itself, is more elegant I think, though.
The one thing from your code above that I changed was $vbs_ey_post to $vbs_post – and I kept it that way in both form pages as well.
BUT, this is the error I wind up with: Warning: array_merge(): Argument #2 is not an array in /home/ccharacternew/public_html/childmin/wp-includes/post.php on line 3592
Warning: Cannot modify header information – headers already sent by (output started at /home/path/wp-includes/post.php:3592) in /home/path/wp-includes/pluggable.php on line 1167
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!
© 2022 Advanced Custom Fields.