// chargement des scripts add_action('admin_enqueue_scripts', 'my_admin_scripts_method'); function my_admin_scripts_method(){ if(is_admin()){ wp_enqueue_script('jquery-ui-autocomplete'); wp_register_style('jquery.ui.theme', get_bloginfo('template_url') . '/css/jquery-ui-1.8.19.custom.css'); wp_enqueue_style('jquery.ui.theme'); } } // Initialisation de la metabox, pour le CPT "conference" add_action('add_meta_boxes','mes_metaboxes'); function mes_metaboxes(){ add_meta_box('conferenciers_presents', 'Conférenciers présents', 'conferenciers_concernes', 'conference', 'side', 'default'); } //Construction function conferenciers_concernes($post){ $conferenciers_presents = get_post_meta($post->ID,'_conferenciers_presents',false); wp_nonce_field('update-conferenciers_'.$post->ID, '_wpnonce_update_conferenciers'); echo '