This might be a dumb question, but are you adding a new title when you submit? If it still says “New Post”, then it will give you that error.
No reason I can think of that that should still fail, but I’d need to try some things out at the same time.
Do you have your CMB2 config setup available to share, as well as what version of WordPress you’re on, in case that’s contributing.
Yes – I am changing the title. The page in question is at http://shellpoint.staging.wpengine.com/art-submission/ wp version 4.8
Thank you for taking a look.
Can you please provide a copy of all the code being used to set this up as well? So that we can potentially test on a dev install of ours?
Just find the line
// And that the title is not the default title
remove the condition
if ( $cmb->get_field( ‘submitted_post_title’ )->default() == $_POST[‘submitted_post_title’] ) {
return $cmb->prop( ‘submission_error’, new WP_Error( ‘post_data_missing’, __( ‘Please enter a new title.’ ) ) );
}
Because it will be same always, thats why it causing the error. I was getting the same error but now it resolved my issue