RSS with image in each post (2 posts)

  1. gimperdaniel
    Posted 7 years ago #


    I am starting to mess with RSS now, so I am fairly new to it. I just need some guidance:

    I read in some other posts I could just create a page and then use a template to create a custom feed. That has worked so far. I opened the feed-rss2.php and created a template out of that. Great...

    So now I want to add an image to each post:

    I tried the enclosure tag, and the media:content tag and the image tag and neither one seemed to work. I was able to get an image for the <channel> but once I placed the code inside the item it didn't work.

    Is there a specific other to the tags inside the <item> tag?

    Can some one give me an example?

  2. shua
    Posted 7 years ago #

    I use the atom format - place all content within:

    <content type="html" xml:base="<?php permalink_single_rss() ?>"> PLACE CONTENT HERE </content>

    hope that helps

Topic Closed

This topic has been closed to new replies.

About this Topic