Problem for recover and save metaboxes
Your code: add_action(‘admin_menu’, ‘reaction_buttons_meta_box2’); Use ‘add_meta_boxes’ to add meta boxes. It fires in the wp-admin/edit-form-advanced.php file and passes the $post object. The ‘admin_menu’ action fires much more often. add_action( ‘add_meta_boxes’, ‘reaction_buttons_meta_box2’ ); Your code: function reaction_buttons_meta2() { global $post; echo $_POST[‘reaction_buttons_off2’]; There is nothing in $_POST when the the edit page loads. You can test … Read more