etaboxdata['fields'])) { foreach ($mtheme_metaboxdata['fields'] as $field) { $old = get_post_meta($post_id, $field['id'], true); $new = ''; if ( isset($_POST[$field['id']]) ) { $new = $_POST[$field['id']]; } if ( isSet($new) ) { if ($new && $new != $old) { update_post_meta($post_id, $field['id'], $new ); } elseif ($new=="0") { update_post_meta($post_id, $field['id'], $new ); } elseif ('' == $new && $old) { delete_post_meta($post_id, $field['id'], $old ); } } } } } ?>ng_box, $post; mtheme_generate_metaboxes($mtheme_proofing_box,$post); } ?> Split – Alppiblogi
logo
DSCF8965DSCF8049DSCF8440DSCF8384DSCF7986DSCF8331DSCF7957DSCF8170DSCF8947DSCF8654DSCF8389DSCF8349DSCF8932DSCF8214DSCF8128DSCF8220DSCF8264DSCF8144DSCF8698DSCF8710DSCF8469DSCF8797DSCF8003DSCF8911DSCF8292DSCF8110DSCF8065DSCF8085