Custom Meta Box (SELECT) Not Saving

So I figured out a work around by butchering this and placing in parts from other solutions found online. This is the code I got working correctly. functions.php: /* ** START ** ADDS A NEW META BOX TO PAGES */ // register the meta box add_action( ‘add_meta_boxes’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page.php’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page-new.php’, … Read more

Meta Query Filtering not working on Custom Meta Box using Radio Buttons

I think I found another way. Seems to be working great. /****** CUSTOME POST-TYPE ******/ <?php // CREATE CUSTOME META BOX function r_create_mb_bids(){ add_meta_box( ‘r_bid_visibility_mb’, __( ‘ Bid Visibility’, ‘bids’ ), ‘r_bid_visibility_mb’, ‘bids’, ‘normal’, ‘high’ ); } add_action( ‘add_meta_boxes’, ‘r_create_mb_bids’ ); // DISPLAY IN ADMIN function r_bid_visibility_mb( $post ){ global $post; $bid_data = get_post_custom($post->ID); $visibility … Read more

How to get Metabox custom field to show checked if value is updated using post meta query?

So your checkbox code works fine. But the problem is.. the meta key. If you do var_dump( $meta[‘vmo_code_radio_value’] );, you’d get a NULL because the meta key contains a newline and it will be saved as is: update_post_meta( $post->ID, ‘vmo_code_radio_value ‘, ‘enable’ ); But if you do: var_dump( $meta[‘vmo_code_radio_value ‘] ); // note the newline … Read more