//说说
add_action('init', 'my_custom_init');
function my_custom_init() { 
$labels = array( 'name' => '说说', 
'singular_name' => 'singularname', 
'add_new' => '发表说说', 
'add_new_item' => '发表说说', 
'edit_item' => '编辑说说', 
'new_item' => '新事件', 
'view_item' => '查看', 
'search_items' => '搜索说说', 
'not_found' => '暂无说说', 
'not_found_in_trash' => '没有已遗弃的说说', 
'parent_item_colon' => '', 'menu_name' => '说说' );
$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); }

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注