Home › Forums › ACF PRO › acf_form() not working in ACF 5 › Reply To: acf_form() not working in ACF 5
Hi, John. I think this might be the root of a problem that I’m experiencing with my pre_save_post filter. If I comment out the
if( $post_id != 'new_post' ) {
return $post_id;
}
bit then it works. Your comment above suggests that I should change it to new new_{$custom_post_type}
, my post type is ‘role’ but $post_id != 'new_role'
doesn’t do the trick. What am I missing?
NB the documentation says $post_id != 'new'
but that doesn’t work either.
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.