Support » Fixing WordPress » Changing Custom Post Type Definition Loses Data

  • 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?


Viewing 2 replies - 1 through 2 (of 2 total)
  • sk


    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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing Custom Post Type Definition Loses Data’ is closed to new replies.