Input value from metabox is not found in $_POST after post save
The $_POST[”] has to contain the name attribute of the input field and not the ID. So to modify your code: function silly_display_metabox( $post ) { wp_nonce_field( basename( __FILE__ ), ‘silly_extrnum_nonce’ ); ?> <label for=”sillyNum”>Silly Number</label> <input type=”number” id=”sillyNum” name=”sillyNum” placeholder=”Write a number…”> <?php } And function silly_save_metabox( $post_id ) { $is_autosave = wp_is_post_autosave( $post_id … Read more