rewrite["slug"] = "progetti"; //register_post_type($args->name, $args); //} //add_action('init', 'change_slug_of_post_type_projects', 20); //--------------------------------------------- /* Meta box aggiunto sui progetti */ add_action( 'add_meta_boxes', 'st_add_options_project' ); function st_add_options_project() { $screens = array( 'project'); foreach ( $screens as $screen ) { add_meta_box( 'st_project_options', // Unique ID 'Sotto titolo', // Box title 'st_add_html_options_project', // Content callback descritta sotto $screen // post type ); } } //Richiamo callback descritta sopra nella funzione per aggiungere i metabox function st_add_html_options_project( $post ) { $value1 = get_post_meta( $post->ID, 'st-sottotitolo', true ); echo '
'; } if ( isset($_POST['conc_meta_form']) and $_POST['conc_meta_form'] == 1 ) { add_action( 'save_post', 'st_options_project_save_postdata' ); function st_options_project_save_postdata( $post_id ) { if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if (empty($_POST['sottotitolo'])){ $_POST['sottotitolo'] = "";} update_post_meta( $post_id,'st-sottotitolo',$_POST['sottotitolo']); }} //AGGIUNTO CSS IN ADMIN function load_custom_wp_admin_styl_css() { wp_register_style( 'custom-admin', get_stylesheet_directory_uri() . '/css/customStyle.css', false, '' ); wp_enqueue_style( 'custom-admin' ); } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_styl_css' ); 2014-03-20_15-49-15_851 - Al Castagno

Blog

One jeepers stood owing and narrow while among that orca thanks.