I know save_post is called twice when a post is saved. The fact that die() solves your problem indicates that the second call is undoing the first, perhaps?
save_post will also be called on autosave, so you might want to eliminate those too.
I know save_post is called twice when a post is saved. The fact that die() solves your problem indicates that the second call is undoing the first, perhaps?
save_post will also be called on autosave, so you might want to eliminate those too.