Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Justin Sternberg

    (@jtsternberg)

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter momofone

    (@jacquidervan)

    Yes – I am changing the title. The page in question is at https://shellpoint.staging.wpengine.com/art-submission/ wp version 4.8

    Thank you for taking a look.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Frontend posting snippet’ is closed to new replies.