Is there a way to send only an Image with a link and some alt text for each item in an RSS feed?
I looked at the enclosure
tag but this is only for videos and music.
Now, while the content of your RSS feed may include images, the first image or featured image doesn't usually make it through to the feed readers.
<enclosure url="https://www.w3schools.com/media/3d.wmv" length="78645" type="video/wmv" /> </item> </channel> </rss>
The enclosure
element can be used to transmit pictures. The RSS 2.0 spec is quite clear about that, saying that the type is a MIME type. It does not say it is restricted to audio or video.
Here's an example: a set of photo feeds from Agence France Presse
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With