WordPress.org

Ready to get started?Download WordPress

Forums

SB RSS feed plus
Adding thumbnails to RSS feed (2 posts)

  1. Rachelflute
    Member
    Posted 9 months ago #

    Hi,

    I can't get the thumbnails to show from the rss feed that I've selected. It sais that it will show the thumbnails 'if configured' in WordPress. Could you be a bit clearer on that please? How can I configure that in WordPress?

    Thanks

    http://wordpress.org/extend/plugins/sb-rss-feed-plus/

  2. Rachelflute
    Member
    Posted 9 months ago #

    Hi,

    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.

Reply

You must log in to post.

About this Plugin

About this Topic