• Someone please assist with this…I’ve asked only 5x’s. Also what files control the RSS feed tags?? Please someone give me some direction…

Viewing 5 replies - 1 through 5 (of 5 total)
  • according to your post history, this is the first time you’ve asked this question.

    The rest of the image questions were different. I have no idea how to answer the others, but if you are using post thumbnails, I can help.

    this added to functions.php drops my thumbnails (or featured images) into the rss

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
    function insertThumbnailRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
    }
    return $content;
    }
    
    add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    add_filter('the_content_feed', 'insertThumbnailRSS');

    Does that mean you get the little RSS icon next to the RSS feed link, like it is on the right of this topic?

    I’ve also seen RSS icons on the bottom of pages, in the footer I assume, along with all those other icons you can get, such as twitter, SU, etc. Is there a code for that too?
    (I’m not good at coding, so a clear explanation of what code to put in which file is a great help, thanks)

    edit: just saw Shane’s post, I’ll check that out too, thanks

    @sjeng, please start a new topic. What you are asking is not at all what this code does

    Thread Starter i_banks

    (@i_banks)

    @rvoodoo..

    sorry for the late response…working a regular 9-5….anyway…I saw a post with your response before with the same code and I saved it to my favorites…

    I already copied your code and placed it in the functions.php, but in the wp-includes file…

    Is this the right file? Also, with these lines:

    add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    add_filter('the_content_feed', 'insertThumbnailRSS');

    where are these lines added? it seems like these lines would be in a different file that forms the RSS 2.0 tags..like:

    <link><?php get_link() ?></link>
    <image><?php echo add_filter('the_excerpt_rss', 'insertThumbnailRSS'); ?></image>

    or something like that..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HOW DO I ADD A THUMBNAIL TO RSS FEED..PLEASE!!’ is closed to new replies.