customer_case_v2
客户案例
// Register Custom Post Type function custom_post_type() { $labels = array( 'name' => '客户案例', 'singular_name' => '客户案例', 'menu_name' => '客户案例', 'name_admin_bar' => '客户案例', 'archives' => 'Item Archives', 'attributes' => '客户案例信息', 'parent_item_colon' => 'Parent Item:', 'all_items' => '所有客户案例', 'add_new_item' => '添加客户案例', 'add_new' => '添加客户案例', 'new_item' => '新客户案例', 'edit_item' => '编辑客户案例', 'update_item' => '更新客户案例', 'view_item' => '查看客户案例', 'view_items' => '查看客户案例', 'search_items' => '搜索客户案例', 'not_found' => '还没有客户案例', 'not_found_in_trash' => '空', 'featured_image' => '客户案例图片', 'set_featured_image' => '添加图片', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => '客户案例列表', 'items_list_navigation' => '客户案例列表', 'filter_items_list' => 'Filter items list', ); $args = array( 'label' => '客户案例', 'description' => '客户案例信息', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'taxonomies' => array( 'category' ), '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' => false, 'exclude_from_search' => true, 'publicly_queryable' => false, 'rewrite' => false, 'capability_type' => 'page', ); register_post_type( 'customer_case', $args ); } add_action( 'init', 'custom_post_type', 0 );