Support » Plugin: SB RSS feed plus » Adding thumbnails to RSS feed

Viewing 1 replies (of 1 total)
  • Rachelflute



    Just to add to that, I added this to my first blog’s theme’s php file to make sure that the feed has thumbnails in the feed;

    function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = ” . get_the_post_thumbnail( $post->ID, ‘thumbnail’, array( ‘style’ => ‘float:left; margin:0 15px 15px 0;’ ) ) . ” . $content;
    return $content;

    add_filter(‘the_excerpt_rss’, ‘featuredtoRSS’);
    add_filter(‘the_content_feed’, ‘featuredtoRSS’);

    but that doesn’t work. What can I do? I’m very confused as to why you didn’t add instructions to do this, as I can’t find them any where on the net, apart from that code above.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding thumbnails to RSS feed’ is closed to new replies.