Support

Account

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