I use Simple Custom Post Types plugin to create new Custom Post Types and I use Simple Taxonomy plugin to create new Taxonomy, but when I would like to create or update a new post wordpress doesn't display me the custom type or taxonomy that I have created before.
This is my code :
add_action( 'init', 'register_my_cpt_video', 10 );
function register_my_cpt_video() {
register_post_type( "video", array (
'labels' =>
array (
'name' => 'Vidéos',
'singular_name' => 'Vidéo',
'add_new' => 'Ajouter',
'add_new_item' => 'Ajouter une nouvelle vidéo',
'edit_item' => 'Modifier la vidéo',
'new_item' => 'Nouvelle vidéo',
'view_item' => 'Voir la vidéo',
'search_items' => 'Chercher une vidéo',
'not_found' => 'Aucune vidéo trouvée',
'not_found_in_trash' => 'Aucune vidéo trouvée dans la corbeille',
'parent_item_colon' => 'Vidéo parente:',
),
'description' => '',
'publicly_queryable' => true,
'exclude_from_search' => false,
'map_meta_cap' => true,
'capability_type' => 'post',
'public' => true,
'hierarchical' => false,
'rewrite' =>
array (
'slug' => 'video',
'with_front' => true,
'pages' => true,
'feeds' => true,
),
'has_archive' => true,
'query_var' => 'video',
'supports' =>
array (
0 => 'title',
1 => 'editor',
2 => 'thumbnail',
3 => 'comments',
),
'taxonomies' =>
array (
0 => 'category_video',
),
'show_ui' => true,
'menu_position' => 30,
'menu_icon' => false,
'can_export' => true,
'show_in_nav_menus' => true,
'show_in_menu' => false,
) );
}
Any idea? Thanks in advance.