Changing Custom Post Type Definition Loses Data (3 posts)

  1. gavinbrook
    Posted 5 years ago #

    Not sure if this covered, but an extensive search didn't show anything.

    I've written a custom post type and all is working. I put data in and it saves ok. All good.

    Except I need to add an additional field to the type. I do this, all is ok except that all custom post data is lost when I go to a previous post.

    Is this a bug or by design? Can I get around this as I may need to make changes down the line and don't want to lose all of my data.

    Any ideas or advice?


  2. sk
    Posted 5 years ago #

    Hey buddy I'm looking in to this same problem. This is all I've found so far


    Will keep you in the loop (SHITPUN!) if I get it sorted

  3. gavinbrook
    Posted 5 years ago #

    I've still not found anything. But I had an abstract thought that it was something to do with autosave getting in a mess. I turned it off using a plugin and we have not seen this problem re-occur.

    My thought was that we were editing the post, changed the functions.php custom definition but auto save was still occurring and caused the data to re-write.

    Might not be the cause, but turning it off has helped.

Topic Closed

This topic has been closed to new replies.

About this Topic