Wordpress 如何使用短代码进行分类
我想用短代码进行分类我不想使用任何插件我在插件中使用了这段代码有人能帮我吗Wordpress 如何使用短代码进行分类,wordpress,taxonomy,shortcode,custom-taxonomy,Wordpress,Taxonomy,Shortcode,Custom Taxonomy,我想用短代码进行分类我不想使用任何插件我在插件中使用了这段代码有人能帮我吗 // create a new taxonomy register_taxonomy( 'Category', 'projects', array( 'labels' => array( //'supports' => array( 'title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail' ),
// create a new taxonomy
register_taxonomy(
'Category',
'projects',
array(
'labels' => array(
//'supports' => array( 'title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail' ),
'name' => __('Skills'),
'singular_name' => __('skills'),
'edit_item' => __('Edit Skill'),
'update_item' => __('Update Skill'),
'new_item_name' => __('New Skill Name'),
'all_items' => __('All Skill Name'),
'add_new_item' => __('Add New Skill'),
'search_items' => __('Seacrh Skill Name'),
'popular_items' => __('Popular Skill'),
'separate_items_with_comments' => __('Separate Items With Comments'),
'add_or_remove_items' => __('Add Or Remove Items'),
'choose_from_most_used' => __('Choose From Most Used'),
),
'public' => TRUE,
'rewrite' => array(
'slug' => 'skills',
'with_front' => TRUE
),
'hierarchical' => TRUE,
)
);
欢迎来到堆栈溢出!我对您的问题进行了编辑,以正确缩进您的代码。我建议您遵循一些特定的代码样式,例如Wordpress使用的样式,以便其他人可以更容易地阅读您的代码并能够在这方面进行合作。祝你好运你能告诉我wordpress的代码样式吗?