Custom Post Meta from custom metaboxes is randomly being deleted
The code uses the save_post hook to save the results of the form, however, at no point did it check which post it was saving. This means your save function runs for that post, but it also runs for drafts, autosaves, etc Then, on top of that there are checks like this: if( isset( $_POST[‘cpt_cpts’] … Read more