einicher.net

The Code must do the talking.

How to add preview thumbs to your WordPress RSS2-Feed

4. September 2015

I searched a while to find an elegant solution to add preview thumbs to your WordPress RSS2-Feed. Most „solutions“ I found just append the image to the excerpt or content. I didn’t like that very much. I use actions/filters now to append an XML-Element inside the item-Tag. As far as I understand, in RSS2 you use the enclosure-Tag for that, but you can – of corse – change it anyway you want:

Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *