Meta box html is not updating after saving

snippet code of notification display when check notify checkbox and display message in Update and Publish post or page in admin function cabtv_add_post_options() { // Add our meta box for the “post” post type (default) $post_types = array(“post”, “page”); foreach ($post_types as $post_type) { add_meta_box(‘cabtv_notif_on_post’,’Notifications’,’cabtv_notif_on_post_html_view’,$post_type,’side’,’high’); } } add_action(‘add_meta_boxes’, ‘cabtv_add_post_options’); function cabtv_notif_on_post_html_view($post) { wp_nonce_field( ‘cabtv_notif_metabox’, ‘cabtv_notif_metabox’ … Read more

Multiple Meta Boxes in separate files

Save each meta box out to a file with the code as if they were in your functions.php file. Maybe place these in a folder called meta_boxes. Then to include into your theme just include() them into your functions file <?php // all the code that your functions file contains include(“meta_boxes/meta1.php”); include(“meta_boxes/meta2.php”); include(“meta_boxes/meta3.php”); include(“meta_boxes/meta4.php”); // … Read more