Support

Account

Home Forums ACF PRO After Upgrade to V5 Reply To: After Upgrade to V5

  • First I’ll cover the second one about creating two posts. Change the value in your acf_form() args from 'post_id'=> 'new_post', to 'post_id'=> 'new_project',. The value new_post triggers ACF to create a new “Post”, then in your pre save post filter change if( $post_id != 'new' ) to if( $post_id != 'new_project' )

    Second, the first question about the jQuery. You need to change the ID values that you’re targeting and you’ll need to look at the HTML output of the ACF form for all the details. But basically your selectors should look something like $([data-key="field_0987654321"] input) where the data-key value is the field key of the field you want to target.