Title: Category Exclude Problem
Last modified: August 19, 2016

---

# Category Exclude Problem

 *  [cucelo](https://wordpress.org/support/users/cucelo/)
 * (@cucelo)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/category-exclude-problem/)
 * Helo friends
 * There are some categories on my homepage that I use for the lead picture and 
   some videos. When I exclude them with plugin it also removes the posts related
   to category.
 * But I just want to remove the name of the category
 * how am I gonna do that ?
 * thanks all

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/category-exclude-problem/#post-930304)
 * use exlude arguments in the list_categories inside your template.
    `<?php wp_list_categories('
   exclude=X,Y,Z'); ?>` where X,Y,Z are your categories, for example :
 *     ```
       <?php wp_list_categories('exclude=2,4,6,12'); ?>
       ```
   
 *  Thread Starter [cucelo](https://wordpress.org/support/users/cucelo/)
 * (@cucelo)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/category-exclude-problem/#post-930529)
 * ok krembo thanks, Ill try and tell you ab it
 *  Thread Starter [cucelo](https://wordpress.org/support/users/cucelo/)
 * (@cucelo)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/category-exclude-problem/#post-930547)
 * hello krembo
    I did it like the following and tried some other ways but couldnt
   manage it, can you help me some more please
 * function wp_list_categories($args = ”) {
    $defaults = array( ‘show_option_all’
   => ”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘show_last_update’ => 0, ‘style’
   => ‘list’, ‘show_count’ => 0, ‘hide_empty’ => 1, ‘use_desc_for_title’ => 1, ‘
   child_of’ => 0, ‘feed’ => ”, ‘feed_type’ => ”, ‘feed_image’ => ”, ‘exclude’ =
   > ”, ‘current_category’ => 0, ‘hierarchical’ => true, ‘title_li’ => __(‘Categories’),‘
   echo’ => 1, ‘depth’ => 0 **<?php wp_list_categories(‘exclude=9’); ?>** );

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Category Exclude Problem’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [cucelo](https://wordpress.org/support/users/cucelo/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/category-exclude-problem/#post-930547)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
