add_action( 'add_meta_boxes', 'dynamic_add_custom_box' ); /* Do something with the data entered */ add_action( 'save_post', 'dynamic_save_postdata' ); /* Adds a box to the main column on the Post and Page edit screens */ function dynamic_add_custom_box() { add_meta_box( 'dynamic_sectionid', __( 'Configurar Salas', 'myplugin_textdomain' ), 'dynamic_inner_custom_box', 'filmes'); } /* Prints the box content */ function dynamic_inner_custom_box() { global $post; // Use nonce for verification wp_nonce_field( plugin_basename( __FILE__ ), 'dynamicMeta_noncename' ); ?>
ID,'songs',true); $c = 0; if (count($songs) > 0){ foreach($songs as $track ){ if (@isset($track['title']) || isset($track['track'])){ echo '

Song Title -- Track number : Remover

'; $c = $c +1; } } } ?>