Unable to save custom taxonomy terms in a custom-built metabox

I believe your problem might be nonce-related. I see you’re doing what I did at one point with a problem I had when I tried doing nonces the way you’re using them.

I’ll quote @EAMann on this:

The standard way to create this field
is using WordPress’ wp_nonce_field()
function. It will add the hidden
field for you:

wp_nonce_field( __FILE__, 'argus_edit_visitor' );

Try that, see if it works. I don’t see anything else wrong with your code.

If that doesn’t work, try print_r( $_POST['beds'] ) to reveal what is being submitted in $_POST['beds'].

Leave a Comment