参考教程:
添加如下代码到模板的functions.php里边:
add_action('init', 'wordpress_themes'); functionwordpress_themes() { $wp_themes_args= array( 'label'=> __('Wordpress Themes'), 'singular_label'=> __('Wordpress Themes'), 'public'=> true, 'show_ui'=> true, 'capability_type'=> 'post', 'hierarchical'=> false, 'rewrite'=> true, 'supports'=> array('title','editor','author','thumbnail','excerpt','comments'), 'taxonomies'=> array('category', 'post_tag') // this is IMPORTANT ); register_post_type('wordpress-themes',$wp_themes_args); }