Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • i too have discovered a similar issue. i spent a whole day trying to figure out why my custom meta box values were sometimes disappearing, seemingly on their own. the part that had me most confused was that the data would save to the database, and as long as i was jumping around trying to replicate the problem and checking to see if it had happened, everything was fine. but the moment i would sit still for a few min… POW! all custom meta values for one post was gone! i finally realized it was happening when a post auto saved! whatever post’s edit page i was sitting on would be the effected post. now that i have figured it out, it makes total sense… the problem is i have no idea how to fix it. i added an action to run the meta save function whenever “save_post” happens, but clearly, this does not include auto-save… it seems to me, the best solution for me (short of hacking the core to include the auto-save in save_post) is to add a second action, running the meta save function whenever the auto-save runs… the catch: i still haven’t found that function. can anyone tell me what it is? this cannot be a unique issue… and i imagine there must be an appropriate patch on wordpress’ part, but for now, i just need something that works

    Thread Starter schneidley

    (@schneidley)

    Oh, DUH (facepalm)! I think I’ve been staring at code for too long… Time for a break! I was WAY over-thinking it. not sure how long it would have taken me to come up with such a simple solution… Yours works great for my needs, thanks a million!

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