# How to hide topics of multi categories and their all sub-categories from latest page

**URL:** <https://meta.discourse.org/t/how-to-hide-topics-of-multi-categories-and-their-all-sub-categories-from-latest-page/24416>\
**Category:** Feature\
**Created:** [25. Januar 2015 um 09:45 UTC](https://meta.discourse.org/t/how-to-hide-topics-of-multi-categories-and-their-all-sub-categories-from-latest-page/24416 "2015-01-25T09:45:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![suanfazu](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@suanfazu](https://meta.discourse.org/u/suanfazu)\
**Post date:** [25. Januar 2015 um 14:42 UTC](https://meta.discourse.org/t/how-to-hide-topics-of-multi-categories-and-their-all-sub-categories-from-latest-page/24416/5 "2015-01-25T14:42:49Z")

</div>

I just made a workaround (code below). Not sure if this may cause other problems. @codinghorror please help to fix

```plaintext
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index bea0f7c..cb2df7a 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -237,7 +237,8 @@ class ListController < ApplicationController
     options = {
       page: params[:page],
       topic_ids: param_to_integer_list(:topic_ids),
- exclude_category: (params[:exclude_category] || select_menu_item.try(:filter)),
+ # exclude_category: (params[:exclude_category] || select_menu_item.try(:filter)),
+ exclude_category: (select_menu_item.try(:filter) || params[:exclude_category]),
       category: params[:category],

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-hide-topics-of-multi-categories-and-their-all-sub-categories-from-latest-page/24416)._
