WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms + Custom Post Types
[resolved] Form submissions over write existing post data (4 posts)

  1. David Jay
    Member
    Posted 2 years ago #

    When I submit a form linked to a CPT the data entered into the form fields over writes the data in an existing post of the same CPT.

    A new post is created with a new title and URL and the old post, with its original title and URL, is still there but the information in the old post gets changed to the information from the latest form submission.

    Any thoughts on what is causing this?

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

  2. bradvin
    Member
    Plugin Author

    Posted 2 years ago #

    Hey David,

    This is a strange one. So not only is the form creating a new post when submitted, but it is also overriding data in an existing post? Is that right?

    What versions of GF and GF+CPT are you using?

    Also, can you export the form to xml and paste it in pastebin so I can have a look

  3. David Jay
    Member
    Posted 2 years ago #

    Thanks for the response but I apologize for the inquiry. You beat me to the response

    I realized in was my custom post template that was causing the problem. I was using a loop with 1 post so it was pulling the information for the most recent form submission.

    I am new to php and custom post types but your plugin is helping a lot.

    Thanks again for the response and great plugin.

    Dave

  4. WraithKenny
    Member
    Posted 2 years ago #

    You should mark this thread as resolved David.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic