Title: exclude a category
Last modified: August 19, 2016

---

# exclude a category

 *  [rleon](https://wordpress.org/support/users/rleon/)
 * (@rleon)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/exclude-a-category-1/)
 * Ok, I did this before but removed the code and didnt save it.
 * But I would like to exclude a category from my front page.
 * If I recall, I just added a one liner to my index.php , I believe it was something
   like … exclude=18
    But I don’t remember what it is.
 * I also dont remember if removing it from the front page removed it frmo the RSS
   feed .. if not how would i do that?
 * I know there are plugins for this but I would like to use code.

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/exclude-a-category-1/#post-1220587)
 * [http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page](http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page)

Viewing 1 replies (of 1 total)

The topic ‘exclude a category’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/exclude-a-category-1/#post-1220587)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
