WordLog

A weblog authored by Carthik about the latest in the WordPress world.

Sunday, August 01, 2004

Add an image to your RSS 2.0 feed

Filed under: — Carthik @ 8:00 pm

Reader of this weblog who use a feed reader should now be seeing a small image in their readers.
The RSS 2.0 specification allows for each “channel” or feed to have an image associated with it.

Adding an image to your RSS 2.0 feed is known to be perfectly harmless, and can add some color and jazz to your feeds in the feed-readers’ display. Of course, the effect is entirely cosmetic, but heck, if you can spend hours modifying the design of your blog, why not spend a few minutes modifying how your feed is displayed in readers, considering the fact that a lot of your regular readers might be using a feed reader?

To add an image to the RSS 2.0 feed created by your WordPress weblog, create an image (the maximum value for the width and height for RSS 2.0 feeds are 144 and 400 respectively), upload it to your wp-content folder, which is intended to hold all user-content, and edit your wp-rss2.php file/template to include the image. Change the permissions of the wp-rss2.php file to 666, and you can use WordPress’ in-built template editor to do the editing.

Here is the relevant portion from WordLog’s RSS 2.0 feed :
.
.

<channel>
<title><?php bloginfo_rss('name') ?></title>
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description>
<image>
<link>http://wordlog.com/</link>
<url>http://wordlog.com/wp-content/feedlogo.jpg</url>
<title>wordlog.com</title>
</image>
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
.
.

27 Comments »

  1. It sounds like I need to get a better feed reader. I currently use klipfolio, but it does not display any info or images – only flashes headlines at me that a site is updated, and i have to click to go directly to the site – so i did not see an image. is it like a favicon of sorts?

    Comment by Jina — 8/1/2004 @ 8:10 pm

  2. It is a small image that gets displayed, no big deal, really. The image for wordlog is here and this image will be shown in the reader, depending on how the reader chooses to display it.

    Comment by Carthik — 8/1/2004 @ 8:52 pm

  3. I see no image with Sage; an RSS Reader extension for FireFox.

    Comment by augie — 8/2/2004 @ 11:57 pm

  4. Or if you really want to have some fun, you can do something similar to get your paypal donate link into your feed. Check the feed from my site, item #1.

    Comment by Kitten — 8/3/2004 @ 4:55 am

  5. test

    Comment by shamzid — 5/6/2007 @ 12:23 am

  6. Thanks for the easy to understand article!

    Is there a way to have my feed include images that are inserted through custom fields?

    Comment by Jess — 6/9/2008 @ 4:57 pm

  7. You have to edit feed-rss2.php for WordPress 2.7 and other versions.

    Comment by Byron Schuurman — 7/15/2009 @ 8:49 am

  8. ???????????? ????????? ?????? ????, ????????? ? ????????

    Comment by ????? — 9/11/2009 @ 6:49 pm

  9. How I can change my RSS

    Comment by suman — 9/23/2009 @ 4:20 am

  10. What is RSS

    Comment by suman — 9/23/2009 @ 4:20 am

  11. what do you think about RSS

    Comment by suman — 9/23/2009 @ 4:21 am

  12. Yeah,

    That article is a blast! Thanks for the shelp…

    To add an image to the RSS 2.0 feed created by your WordPress weblog, create an image (the maximum value for the width and height for RSS 2.0 feeds are 144 and 400 respectively), upload it to your wp-content folder, which is intended to hold all user-content, and edit your wp-rss2.php file/template to include the image.

    Maybe you tell us what exactly we should modify. Which files is already very known to most of us, but what do you put in there???

    Comment by Chris M — 9/23/2009 @ 11:30 am

  13. That’s great information – for validation purposes is there an equivalent of an ‘alt’ tag?

    Comment by Fred Campbell — 10/5/2009 @ 8:00 am

  14. ????????????? ??????????? ???? ???: ? ??? ?? ?????? ????????? ?????????? ?????????? ? ????? ????????? ??? ???? Trocal, ???? Veka, ???? Schuco. ????? ???????? ??????????? ????.

    Comment by ?????? — 10/10/2009 @ 1:02 pm

  15. ???????????? ????????? ?????????? ????????? ? ?????? ?????? ????. ???????, ????. 8-067-751-30-19 ?????

    Comment by ????? — 10/12/2009 @ 5:55 am

  16. ?? ????? ????? ?? ?????? ?????? ?????????? ?????????? ?????????. ??????? ??????????, ????? ?????????? ?? ????? ? ? ?????????.

    Comment by ???? — 10/12/2009 @ 10:27 am

  17. ????????? ?????????????? ????????? (??????????). ????? ?? 50 000 ???. ? ?????. ???????? ? ??????????? ???????? ?????????. 8-916-923-21-08 ?????

    Comment by ????? — 10/26/2009 @ 12:49 pm

  18. PillPoint – On-Line Pharmacy. Best prices for all types of ,eds. We ship to most countries of the world

    Comment by Kevin — 10/28/2009 @ 8:42 pm

  19. Nice article, but the comments are kinda hackely :)
    Still some sort of mystery how some readers work…

    Comment by francois — 10/30/2009 @ 5:51 am

  20. ?????????? ????, ????????? ???????????? ???????? ???? ????? ?????? ?? ???????.8-067-751-30-19 8-050-721-22-43

    Comment by ????? — 11/5/2009 @ 6:00 pm

  21. [...] (Pre 2.0) How to add an image to your RSS 2.0 feed [...]

    Pingback by WordPress Feeds | Websites4America Blog — 11/12/2009 @ 5:04 am

  22. ????????? ????????? ?????? 8-068-360-98-95 ?????

    Comment by ????? — 12/2/2009 @ 8:57 am

  23. ???????????? ? ????????? ???????? ?????? ?????

    Comment by ?????????????,??????,??????? — 12/12/2009 @ 7:18 am

  24. ?????????? ?????? ?? ??????-?????. ???? ?????????? ???????? ? ???????? ??????????. ?????? ????????????? ????? ?? ????? ????? ??????. ??????????? ??????-???????.

    Comment by Andrei — 12/26/2009 @ 1:28 am

  25. ????? ?????????? ?? Warez-?????? Warez-KING.net ????? ?? ??????? ????, ?????, ??????, ?????, ????, ?????? ? ?????? ??????. ? ??? ??? ?????????!

    Comment by ????????? — 12/28/2009 @ 3:05 pm

  26. ??????? ??? ??????????? ??????? ??????? ????????? ??????? ????????? – ??????????? , ??????, ?????????? ????????? ?? ????? books-city.Ru

    Comment by ????? — 1/26/2010 @ 5:14 pm

  27. Hello,
    I am having a problem replacing an image to my website.
    could you possibly help me through steps since i am green at this

    Comment by William Gresaliof — 2/7/2010 @ 2:26 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

Powered by WordPress

eXTReMe Tracker