The Montoya Herald, a weblog about Blueprint, jQuery, design, music and life, publishing on the web since September 2005. Written by Christian Montoya: developer, designer and entrepreneur.

The Montoya Herald — ChristianMontoya.com

Search

Supported By

RSS and images

Posted on August 3.

I just realized today that the images in my RSS feed were not directly linked and therefore not showing up in feed readers. I went ahead and fixed the RSS feed so that the images show. You should be able to see my cool ghetto pic now. Let me know if there are any other problems.

Get a Trackback link

2 Comments

  1. Andy Brudtkuhl on August 8, 2006

    After you mentioned this I realized our feed was not including images either. What did you do to fix that?

  2. C Montoya on August 9, 2006

    I added the following code after the <?php opener in wp-rss2.php:

    function fix_code($buffer) {
    return (str_replace("src='/wp-content", "src='http://www.christianmontoya.com/wp-content", $buffer));
    }
    ob_start("fix_code");

    My whole problem stemmed from my relative linking of all my images; I just replaced those with absolute links in the RSS feed. If you ask me, this shouldn't be my job; RSS readers should do the necessary content negotiation to replace relative links with absolutes, or at least Feedburner should do this for me, or at least Wordpress should do this out of the box. Oh well.

Leave a comment

Use Markdown or basic HTML. For posting code, use Postable. Please keep comments respectful and on topic.