Home › Forums › Front-end Issues › How do I change the redirect after creating a new post via front-end? › Reply To: How do I change the redirect after creating a new post via front-end?
Ah, I see, then you’re doing it right according to the ACF4 documentation
but that still looks odd to me, why not get the permalink for the post you just created and set it to that? You’ll have to excuse my ignorance, I’ve never tried it before but it seems like this should work
$url - get_permalink($post_id);
$_POST['return'] = $url);
but I could be wrong.
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.