转:WordPress主题添加自定义文章类型register_post_type和分类法
1234567891011121314151617181920212223242526272829303132333435/* Register Custom Post Type */ add_action( 'init', 'create_products_post_type' ); // add portfolio function create_products_post_type() { $labels = array( 'name' => __('产品', 'WPGP'), 'singular_name' => __('产品', 'WPGP'), 'add_new' […] (more...)