1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| //说说页面 function shuoshuo_custom_init() { $labels = array( 'name' => __("Ideas", "sakurairo"), 'singular_name' => __("Idea", "sakurairo"), 'add_new' => __("Publish New Idea", "sakurairo"), 'add_new_item' => __("Publish New Idea", "sakurairo"), 'edit_item' => __("Edit Idea", "sakurairo"), 'new_item' => __("New Idea", "sakurairo"), 'view_item' => __("View Idea", "sakurairo"), 'search_items' => __("Search Idea", "sakurairo"), 'not_found' => __("Not Found Idea", "sakurairo"), 'not_found_in_trash' => __("No Idea in the Trash", "sakurairo"), 'parent_item_colon' => '', 'menu_name' => __("Ideas", "sakurairo") ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array( 'title', 'editor', 'author' ) ); register_post_type('shuoshuo', $args); } add_action('init', 'shuoshuo_custom_init');
|