Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
    
Can we see your code that registers your taxonomy please? –  Jared Jan 24 '12 at 15:08
add comment

1 Answer

up vote 5 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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