如何从自定义分类管理页面中删除标签云?

时间:2012-01-20 作者:KevinUK

当我注册分类法时,我有一个我认为可能会隐藏它的东西:

\'show_tagcloud\' => false
默认类别页面不显示标记云,那么为什么我的自定义分类页面,如何禁用它?

enter image description here

register_taxonomy(\'gmc_region\', \'recipe\', 
array(
  \'labels\' => array( 
    \'name\' => _x( \'Regions\', \'taxonomy general name\' ), 
    \'singular_name\' => _x( \'Region\', \'taxonomy singular name\' ),
    \'popular_items\' => __( \'Popular Regions\' ),
    \'search_items\' => __( \'Search Regions\' ), 
    \'all_items\' => __( \'All Regions\' ), 
    \'parent_item\' => __( \'Parent Region\' ), 
    \'parent_item_colon\' => __( \'Parent Region:\' ), 
    \'edit_item\' => __( \'Edit Region\' ), 
    \'update_item\' => __( \'Update Region\' ), 
    \'add_new_item\' => __( \'Add New Region\' ), 
    \'new_item_name\' => __( \'New Region Name\' ), 
    \'menu_name\' => __( \'Regions\' ), 
  ),
  \'rewrite\' => array( 
    \'slug\' => \'regions\',
    \'with_front\' => false
  ), 
  \'show_in_nav_menus\' => false,
  \'show_ui\' => false,
  \'show_tagcloud\' => false
)
);
谢谢Kevin

1 个回复
最合适的回答,由SO网友:stvwlf 整理而成

有点晚了,但我刚刚学会了如何删除分类法云。在分类标签定义中更改此行

\'popular_items\' => __( \'Popular Regions\' ),
到这个

\'popular_items\' => NULL,
标记云将不再显示

结束

相关推荐

Show post tags in a widget

我想在一个小部件中显示帖子的标签。我知道这很难,因为这是在循环之外,但已经完成了吗,有没有可用的?