Home › Forums › Front-end Issues › Multiple CPT front-end post issue › Reply To: Multiple CPT front-end post issue
Hi @rvirvo
Thanks for the code.
Only 1 of your 3 functions will ever run. This is due to the line:
// check if this is to be a new post
if( $post_id != 'new' )
{
return $post_id;
}
After you insert the first post, you update $post_id param.
Your 2 other functions then bail early due to the code I highlighted above.
Does this help to explain?
If not, can you please detail exactly what you need help with? What are you trying to do? What is and isn’t working? What is the final objective for the code to complete?
Thanks
E
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.