Home › Forums › Front-end Issues › Pass new $post_id to url or… › Reply To: Pass new $post_id to url or…
Yea, I was updating from v4 to v5.
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
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.