# Can I exclude a section from an RSS feed?

**URL:** https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517
**Category:** Support
**Created:** [March 14, 2025, 1:18pm UTC](https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517 "2025-03-14T13:18:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![82MHz](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/82mhz/32/1425_2.png) [@82MHz](https://zola.discourse.group/u/82MHz)
#### Post date: [March 14, 2025, 1:18pm UTC](https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517/1 "2025-03-14T13:18:37Z")

</div>

I have a website with three different sections. In every section’s \_index.xml I have set generate\_feeds = true, which means I get the following rss feeds:

```auto
http://site/rss.xml <- contains all posts from all sections
http://site/section1/rss.xml <- contains posts from only section1
http://site/section2/rss.xml <- contains posts from only section2
http://site/section3/rss.xml <- contains posts from only section3

```

How can I exclude the posts from one of the sections from the main feed? I can’t seem to figure it out. If I filter out section1 from the rss.xml template, they also get filtered out in section1/rss.xml, which is not what I want.

Alternatively I would also be happy if I could have different RSS templates for the different sections so I can control what exactly ends up in each one. Is this possible?

---

<div class="post-metadata">

### Author: ![dustinknopoff](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@dustinknopoff](https://zola.discourse.group/u/dustinknopoff)
#### Post date: [March 14, 2025, 4:18pm UTC](https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517/2 "2025-03-14T16:18:29Z")

</div>

I don’t think there’s a built in way. But! You could override the built in template and add your own filtering

> <https://github.com/getzola/zola/blob/master/components/templates/src/builtins/rss.xml>

---

<div class="post-metadata">

### Author: ![82MHz](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/82mhz/32/1425_2.png) [@82MHz](https://zola.discourse.group/u/82MHz)
#### Post date: [March 14, 2025, 4:56pm UTC](https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517/3 "2025-03-14T16:56:08Z")

</div>

Thanks for the response! But I mentioned it in my original question, I have that template, but if I filter a section out, it gets filtered out in every feed because the template gets applied to every feed that is created.

Hence, part 2 of my question - can I have different templates for different feeds?

---

<div class="post-metadata">

### Author: ![dustinknopoff](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@dustinknopoff](https://zola.discourse.group/u/dustinknopoff)
#### Post date: [March 14, 2025, 7:37pm UTC](https://zola.discourse.group/t/can-i-exclude-a-section-from-an-rss-feed/2517/4 "2025-03-14T19:37:24Z")

</div>

Oh whoops! Sorry I don’t know about that
