# Custom RSS - Ghost 4.0

**URL:** <https://forum.ghost.org/t/custom-rss-ghost-4-0/21902>\
**Category:** Developer help\
**Created:** [April 14, 2021, 9:54pm UTC](https://forum.ghost.org/t/custom-rss-ghost-4-0/21902 "2021-04-14T21:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boryl](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Boryl](https://forum.ghost.org/u/Boryl)\
**Post date:** [April 14, 2021, 9:54pm UTC](https://forum.ghost.org/t/custom-rss-ghost-4-0/21902/1 "2021-04-14T21:54:36Z")

</div>

Is this manual [Official Ghost + Custom RSS Integration](https://ghost.org/integrations/custom-rss/) compatible with Ghost 4.0?

when I use this code fragment, I get weird published date (31 Dec 1969) and no picture

```auto
{{#get "posts" limit="all" include="authors"}}
    {{#foreach posts}}
    <item>
        <title><![CDATA[{{title}}]]></title>
        <description><![CDATA[{{excerpt}}]]></description>
        <link>{{url absolute="true"}}</link>
        <guid isPermaLink="false">{{id}}</guid>
        <category><![CDATA[{{primary_tag}}]]></category>
        <dc:creator><![CDATA[{{primary_author.name}}]]></dc:creator>
        <pubDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</pubDate>
        <media:content url="{{feature_image}}" medium="image"/>
        <content:encoded><![CDATA[{{excerpt}}<p>&nbsp;</p><p><a href="{{url absolute="true"}}">Read More ...</a></p>]]></content:encoded>
    </item>
    {{/foreach}}
{{/get}}

```

And how to replace the default RSS or make another one with blocking the default one?

---

<div class="post-metadata">

**Author:** ![coffeemonk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/coffeemonk/32/11661_2.png) [@coffeemonk](https://forum.ghost.org/u/coffeemonk)\
**Post date:** [April 15, 2021, 4:02am UTC](https://forum.ghost.org/t/custom-rss-ghost-4-0/21902/2 "2021-04-15T04:02:15Z")

</div>

The date formatting code you have is exactly what I’m using in my custom podcast RSS.

Regarding your second question, to “block” the rss for a route, you’d need to add `rss: false` to the route definition for the collection.

For example, my postcast route looks like this:

```
collections:
  /podcast/:
    permalink: /podcast/{slug}/
    template: podcasts
    filter: primary_tag:podcast
    rss: false

```

and my custom podcast rss route is like this:

```
routes:
  /podcast/rss/:
    template: podcast/rss
    content_type: text/xml

```

Most of this is just taken straight from the tutorial about setting up a custom itunes podcast RSS feed: [Tutorials](https://ghost.org/docs/tutorials/custom-rss-feed/)

---

<div class="post-metadata">

**Author:** ![Boryl](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Boryl](https://forum.ghost.org/u/Boryl)\
**Post date:** [April 17, 2021, 10:10am UTC](https://forum.ghost.org/t/custom-rss-ghost-4-0/21902/3 "2021-04-17T10:10:34Z")

</div>

How to check, why there are no images in RSS with “custom RSS” setup in Ghost 4?

Would “Content-Security-Policy” block this?
