10

When I register the taxonomy I have this which I thought might hide it:

'show_tagcloud' => false

The default category page does not show a tag cloud so why does my custom taxonomy page, how do I disable it?

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
)
);

Thanks, Kevin

1
  • Can we see your code that registers your taxonomy please?
    – Jared
    Commented Jan 24, 2012 at 15:08

1 Answer 1

17

A bit late but I just learned how to remove the taxonomy cloud. In your taxonomy label definition change this line

'popular_items' => __( 'Popular Regions' ),

to this

'popular_items' => NULL,

and the tag cloud will no longer appear

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.