我正在尝试添加自定义分类法。使用以下代码:
function cities_custom_taxonomies() {
register_taxonomy(
\'city\', // internal name = machine-readable taxonomy name
\'post\', // object type = post, page, link, or custom post-type
array(
\'hierarchical\' => false, // true for hierarchical like cats, false for flat like tags
\'label\' => \'City\', // the human-readable taxonomy name
\'query_var\' => true, // enable taxonomy-specific querying
\'rewrite\' => true // pretty permalinks for your taxonomy?
)
);
}
add_action(\'init\', \'cities_custom_taxonomies\', 0);
只要我使用英文标签名称,一切都很好。一旦我尝试用希伯来语给它贴上标签,我就看不到新的分类菜单。有什么想法吗?