# Kirby3-feed images

**URL:** <https://forum.getkirby.com/t/kirby3-feed-images/34977>\
**Category:** Questions\
**Tags:** v4\
**Created:** [November 15, 2025, 4:58pm UTC](https://forum.getkirby.com/t/kirby3-feed-images/34977 "2025-11-15T16:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Perry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/perry/32/1336_2.png) [@Perry](https://forum.getkirby.com/u/Perry)\
**Post date:** [November 15, 2025, 4:58pm UTC](https://forum.getkirby.com/t/kirby3-feed-images/34977/1 "2025-11-15T16:58:32Z")

</div>

Hello,

I have started using the RSS feed plugin ( [GitHub - bnomei/kirby3-feed: Generate ATOM/JSON/RSS-Feed and XML-Sitemap from Pages-Collection](https://github.com/bnomei/kirby3-feed) ), but I am having problems creating the URL for the images.

The template looks like this:

```php
<?php

$options = [
'title' => 'Carré Noir',
'description' => 'Carré Noir Programme',
'link' => (string)$pages->find('programm'),
'datefield' => 'from',
'images' => true,
'imagesfield' => 'cover',
'titlefield' => 'title'
];

echo $pages->find('programm')->children()->published()->sortBy('from', 'asc')->flip()->limit(100)->feed($options);

```

The image field in the blueprint:

```yaml
cover:
            label: Image
            type: files
            min: 1
            max: 1
            width: 1/2
            translate: false
            layout: cards
            ratio: 16/9

```

Content file:

`Cover: - file://4ukyl5GqpwfJkcXn`

What did I miss?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 15, 2025, 6:14pm UTC](https://forum.getkirby.com/t/kirby3-feed-images/34977/2 "2025-11-15T18:14:22Z")

</div>

> [@Perry](#):
>
> ```auto
> 'images' => true,
> 'imagesfield' => 'cover',
> 
> ```

These are not valid options according to the plugin’s documentation. Where did you find this? I only see these options for the sitemap.

---

<div class="post-metadata">

**Author:** ![Perry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/perry/32/1336_2.png) [@Perry](https://forum.getkirby.com/u/Perry)\
**Post date:** [November 15, 2025, 6:32pm UTC](https://forum.getkirby.com/t/kirby3-feed-images/34977/3 "2025-11-15T18:32:00Z")

</div>

Yes, you’re right, the image option is only for sitemaps. I’ll have to modify the plugin a little.

Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![Perry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/perry/32/1336_2.png) [@Perry](https://forum.getkirby.com/u/Perry)\
**Post date:** [November 15, 2025, 8:03pm UTC](https://forum.getkirby.com/t/kirby3-feed-images/34977/4 "2025-11-15T20:03:03Z")

</div>

Perhaps my need is also the need of others.

> <https://github.com/bnomei/kirby3-feed/issues/69>
>
> @bnomei 
> 
> Sometimes it is helpful to have images in the RSS feed as well, and si…nce you already offer the option for a sitemap, here is a version of the RSS snippet with the first image from an image collection.
> 
> \`\`\`
> \<?php
> echo '\<?xml version="1.0" encoding="utf-8"?\>';
> 
> ?\>\<rss version="2.0"\>
> \<channel\>
> \<title\>\<?= \\Kirby\\Toolkit\\Xml::encode($title) ?\>\</title\>
> \<link\>\<?= \\Kirby\\Toolkit\\Xml::encode($link) ?\>\</link\>
> \<lastBuildDate\>\<?= $modified ?\>\</lastBuildDate\>
> \<?php if ($description && is\_string($description) && strlen(trim($description)) \> 0) { ?\>
> \<description\>\<?= \\Kirby\\Toolkit\\Xml::encode($description) ?\>\</description\>
> \<?php } ?\>
> \<?php foreach ($items as $item) { ?\>
> \<item\>
> 
> \<?php
> $image = $imagesfield ? $item-\>{$imagesfield}()-\>toFiles()-\>first() : null; ?\>
> 
> 
> \<title\>\<?= \\Kirby\\Toolkit\\Xml::encode($item-\>{$titlefield}()) ?\>\</title\>
> 
> \<link\>\<?= \\Kirby\\Toolkit\\Xml::encode($item-\>{$urlfield}()) ?\>\</link\>
> \<guid\>\<?= \\Kirby\\Toolkit\\Xml::encode($item-\>url()) ?\>\</guid\>
> \<pubDate\>\<?= $datefield === 'modified' ? $item-\>modified('r', 'date') : date('r', $item-\>{$datefield}()-\>toTimestamp()) ?\>\</pubDate\>
> \<description\>
> \<!\[CDATA\[\<?= $item-\>{$textfield}()-\>kirbytext() ?\>\]\]\>
> \</description\>
> 
> \<?php if ($image): ?\>
> \<enclosure
> url="\<?= $image-\>url() ?\>"
> length="\<?= $image-\>size() ?\>"
> type="\<?= $image-\>mime() ?\>" /\>
> \<?php endif ?\>
> 
> \</item\>
> \<?php } ?\>
> \</channel\>
> \</rss\>
> \`\`\`
