The second post of code, as you obviously know, was used to actually use the form data to create a post.
Was used for v4 obviously. I tried appending $GLOBALS[‘acf_form’] to that in place of $_POST and it did not work. So I tried reverting it back to $_POST to see if an object being sent over instead of single variables.
I noticed the new vs new_post shortly after posting and still didn’t work.
I’ll keep debugging and report back when I’m able. Thanks.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users