# Exclude category posts from displaying on home page?

**URL:** https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035
**Category:** Support
**Created:** [August 6, 2019, 7:20pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035 "2019-08-06T19:20:42Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![chris-remus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chris-remus/32/133734_2.png) [@chris-remus](https://meta.discourse.org/u/chris-remus)
#### Post date: [August 6, 2019, 7:20pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/1 "2019-08-06T19:20:42Z")

</div>

Hi,

Our daily update posts here -

[forum.stakingdefense.org](http://forum.stakingdefense.org)

Are overwhelming the other types of posts. Is it possible to exclude posts from the daily-network-updates category from displaying on the home page?

Thank you!

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [August 6, 2019, 7:25pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/2 "2019-08-06T19:25:26Z")

</div>

Head over to the category settings for that category and tick this box under the settings tab

 ![category0001](https://global.discourse-cdn.com/meta/original/3X/5/e/5e146caf1d07b1e089f9ad919a7960ddedfec3b3.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 8, 2019, 4:28am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/3 "2019-08-08T04:28:56Z")

</div>

We’ve generally moved away from recommending that setting, in favor of forcefully setting the “mute this category” preference for all (or some) users on your site.

Perhaps that setting should be removed @sam to indicate just how much we no longer think people should be using it.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 9, 2019, 3:20am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/4 "2019-08-09T03:20:21Z")

</div>

I support removing this setting, but I worry that we are giving admins no easy avenue to set all users to mute specific categories historically. This makes it particularly difficult when you add a category and want it default muted.

How do you feel about providing admins with some UX here? In particular:

- Admin adds a category to `default_categories_muted` (same for watched etc)
- We detect … oh something changed…
  - Would you like all existing users to have “category X” muted?
  - Would you like to remove the category mute from N users?

I like this cause this provide a very clean way for admins to deal with this problem and it has happened countless times now on meta. With this in place I would love to nuke that category setting.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 9, 2019, 4:30am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/5 "2019-08-09T04:30:28Z")

</div>

Yes totally that’s what I’m getting at. We get _lots_ of requests for this, we even do it internally.. so I fully support it.

---

<div class="post-metadata">

### Author: ![chris-remus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chris-remus/32/133734_2.png) [@chris-remus](https://meta.discourse.org/u/chris-remus)
#### Post date: [August 13, 2019, 6:47pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/6 "2019-08-13T18:47:51Z")

</div>

Thanks for the replies. Why is the recommendation so strongly against using the existing option?

Ideally, I’d like to display, say, the most recent X updates from that category. The updates in question are daily updates. So I’d like users to see that these updates exist, yet prevent them from crowding out the updates from other channels.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 2, 2019, 11:22pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/7 "2019-10-02T23:22:43Z")

</div>

@vinothkannans can you [take this](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/4)?

Whenever you change any of these settings we need to pop up a modal:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/5/a55f0db8f82713104c0bc0dd88e6a31427db29a8.png)

> Would you like to apply this change historically? This will change preferences for 1234 existing users.
> 
> [Yes], [No, only apply change going forward]

There are edge cases so let me cover them.

- Default categories watching changes from “cat1, cat2” → “cat1, cat3”

Historic change to apply:

All old users should **STOP** watching cat2 and **START** watching cat3. cat1 is untouched.

- Removal is easy, it can be done blindly.

- Adding new cat3 is a bit tricky, you only add it to users that are **not** `tracking,muting,watching first post` on this category already.

Once this is done you can remove the “category excluded from home page” category setting.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 10, 2019, 11:52pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/9 "2019-10-10T23:52:55Z")

</div>

PR created

[https://github.com/discourse/discourse/pull/8180](https://github.com/discourse/discourse/pull/8180)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 11, 2019, 12:08am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/10 "2019-10-11T00:08:35Z")

</div>

Can you share some screenshots of the workflow?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 11, 2019, 5:44am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/11 "2019-10-11T05:44:17Z")

</div>

![default-categories-muted](https://global.discourse-cdn.com/meta/original/3X/4/4/4406d29b901209de53570079811a5720b70726f3.png)

 ![default-categories-muted-modal](https://global.discourse-cdn.com/meta/original/3X/3/1/3129458eba3701b6fdf60e6614f71879892344cb.png)

In above screenshot, the total user count (30) is fetched from the `about` model (`about.json` URL). Now I’m trying to include it in the site settings page model itself.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 11, 2019, 6:29am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/12 "2019-10-11T06:29:36Z")

</div>

This looks great, I think it is more correct for this to be fetched on demand, no need to tax the page with extra load for the rare case we are adding a default.

I think the only change here is the `Yes` should be primary blue.

@codinghorror you happy with the copy?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 16, 2019, 1:50am UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/13 "2019-10-16T01:50:39Z")

</div>

The PR is now merged.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 17, 2019, 12:30pm UTC](https://meta.discourse.org/t/exclude-category-posts-from-displaying-on-home-page/125035/14 "2019-10-17T12:30:16Z")

</div>

This topic was automatically closed after 34 hours. New replies are no longer allowed.
