Title: Exclude Category from Everything
Last modified: August 19, 2016

---

# Exclude Category from Everything

 *  [darrensa](https://wordpress.org/support/users/darrensa/)
 * (@darrensa)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/exclude-category-from-everything/)
 * Hi,
 * I’m wondering if it’s possible to exclude a category from EVERYTHING? Category
   listings, Archive listings, Next/Prev Links and Search Results. I basically want
   wordpress to ignore the category unless I call it. I’m trying to create a ‘youtube
   sidebar’ and essentially don’t want it to mix with the other content. Perhaps
   it’s possible to do something like this within the functions file?

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

 *  [enotodden](https://wordpress.org/support/users/enotodden/)
 * (@enotodden)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/exclude-category-from-everything/#post-1352863)
 * You should have a look at the ‘front page excluded categories’ plugin. It may
   give you som hints on how to apply it to other places as well.
 * And i googled a bit:
    - [Exclude from frontpage(simple code)](http://blogulate.com/content/exclude-categories-from-wordpress-frontpage/)
    - [Exclude from search](http://www.livexp.net/wordpress/exclude-certain-wordpress-categories-from-being-searched.html)
    - [Exclude from archives](http://sawey.be/others/b17eee154/34/drop/)
    - [More tips on excluding](http://zeo.unic.net.my/exclude-category-in-wordpress/)
 * Just in case i found something you didn’t. Though i suppose you have googled 
   a bit yourself too.
 * (Excuse my English, I’m Norwegian)
 * – Espen
 *  Thread Starter [darrensa](https://wordpress.org/support/users/darrensa/)
 * (@darrensa)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/exclude-category-from-everything/#post-1352936)
 * Hey,
 * Thank you for the info, will go through it all now. Have definitely done some
   googling, been trying to get this working for a few days now! This thread is 
   my last resort.
 * Will let you know if any of it works!
 *  Thread Starter [darrensa](https://wordpress.org/support/users/darrensa/)
 * (@darrensa)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/exclude-category-from-everything/#post-1352979)
 * Hi enotodden.
 * Unfortunately I have tried the above mentioned methods, but the problem with “
   if (is_home()) if (in_category(‘14′)) continue;” is that it doesn’t keep a consistent
   number of posts on the homepage.

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

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

## Tags

 * [exclude category](https://wordpress.org/support/topic-tag/exclude-category/)
 * [search results](https://wordpress.org/support/topic-tag/search-results/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 3 replies
 * 2 participants
 * Last reply from: [darrensa](https://wordpress.org/support/users/darrensa/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/exclude-category-from-everything/#post-1352979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
