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.
$_POST['bh_post_type'];
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!
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.