Я просто задаюсь вопросом, действительно ли возможно создать пользовательский тип сообщения в Wordpress, который скрыт от панели администрации Wordpress?
Если Вы хотите, чтобы это было видимо везде (т.е. поиск), только без меню администратора, то что-то к эффекту следующего должно добиться цели при добавлении к functions.php
в каталоге темы:
register_post_type( 'project',
array(
'labels' => array(
'name' => _x( 'Projects', 'post type general name', 'namespace' ),
'singular_name' => _x( 'Project', 'post type singular name', 'namespace' ),
'add_new' => __( 'Add a New Project', 'namespace' ),
'add_new_item' => __( 'Add a New Project', 'namespace' ),
'edit_item' => __( 'Edit Project', 'namespace' ),
'new_item' => __( 'New Project', 'namespace' ),
'view_item' => __( 'View Project', 'namespace' ),
'search_items' => __( 'Search Projects', 'namespace' ),
'not_found' => __( 'Nothing Found', 'namespace' ),
'not_found_in_trash' => __( 'Nothing found in Trash', 'namespace' ),
'parent_item_colon' => ''
),
'description' => "Projects",
'public' => true, // All the relevant settings below inherit from this setting
'exclude_from_search' => false, // When a search is conducted through search.php, should it be excluded?
'publicly_queryable' => true, // When a parse_request() search is conducted, should it be included?
'show_ui' => false, // Should the primary admin menu be displayed?
'show_in_nav_menus' => false, // Should it show up in Appearance > Menus?
'show_in_menu' => false, // This inherits from show_ui, and determines *where* it should be displayed in the admin
'show_in_admin_bar' => false, // Should it show up in the toolbar when a user is logged in?
'has_archive' => 'projects',
'rewrite' => array( 'slug' => 'project' ),
));
Кодекс Wordpress о register_post_type
содержит более исчерпывающую информацию: http://codex.wordpress.org/Function_Reference/register_post_type