• Hi all,

    I want to change my rss feed. But can’t get it done.
    I have an idea to implement this, just modify the <description> tag and make it as follows:

    <description><![CDATA[<img src="http://www.site.com/thumbnail-40x40.jpg"/> Lorem Ipsum Lorem ipsum Lorem Ipsum Lorem ipsum Lorem Ipsum Lorem ipsum Lorem Ipsum Lorem ipsum Lorem Ipsum Lorem ipsum]]>
             </description>

    This will solve the snippet text issue and the thumbnail issue. Major differences:
    1. No other HTML tags in the text. I can just find the index of the string ‘/>’ to get the content.
    2. Image tag with no other formatting so that I can parse it easily.

    Hope you get it.

    How to get this done, witch file i need to change? Is there an plugin to do this?

    Please help me out.

Viewing 1 replies (of 1 total)
  • i don’t really sure. but i will use this approach and put it in function.php

    function baka_rssContent($content) {
            $content = $content . '<![CDATA[<img src="http://www.site.com/thumbnail-40x40.jpg"/>
    			Lorem Ipsum Lorem ipsum
    			Lorem Ipsum Lorem ipsum Lorem Ipsum Lorem ipsum Lorem Ipsum
    			Lorem ipsum Lorem Ipsum Lorem ipsum]]>';
            return $content;
    }
    add_filter('the_excerpt_rss', 'baka_rssContent');
    add_filter('the_content_rss', 'baka_rssContent');
Viewing 1 replies (of 1 total)

The topic ‘Modify Rss feed’ is closed to new replies.