Question
I succeed in creating a metabox with custom field inside, and I restrict it to appear in a custom post type. //define metabox function product_info_en() { add_meta_box( 'english_info', 'English Info', 'english_product_name_callback', array('product'), 'normal', 'high' ); } //add to hook add_action( 'add_meta_boxes', 'product_info_en' ...
0
, , , , 1 day 0 Answers 2 views

Question
I have a problem. My fields are showing in the meta box, but saving does not work: // Create the metabox and fields function food_meta_box_markup($object) { wp_nonce_field(basename(__FILE__), "meta-box-nonce"); ?> <div> <label for="np-calories" class="np-label"><?php _e( 'Energy (kcal)', 'nutriplus' ) ?></label> ...
0
1 week 0 Answers 9 views