招贤馆
试试看的
// Register Custom Post Type function hunter_post() { $labels = array( 'name' => '任务', 'singular_name' => '任务', 'menu_name' => '招贤馆', 'name_admin_bar' => 'Hunter Post', 'parent_item_colon' => 'Parent Item:', 'all_items' => 'All Items', 'add_new_item' => 'Add New Item', 'add_new' => 'Add New', 'new_item' => 'New Item', 'edit_item' => 'Edit Item', 'update_item' => 'Update Item', 'view_item' => 'View Item', 'search_items' => 'Search Item', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $args = array( 'label' => 'hunter_post', 'description' => 'a place for people to find job', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'hunter_post', $args ); } // Hook into the 'init' action add_action( 'init', 'hunter_post', 0 );