Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12378

    I don’t know is this theme relate question but…

    At the moment RSS feed services displays category icon of the post in the feed view in various rss services…

    I would like to show a post thumbnail in the feed instead of the cat. icon…

    #75263

    Hi Qcor,

    You’ll need to add the following to your functions.php that is located in your theme files:

    // 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');

    Regards,

    Devin

    #75264

    unfortunately, still only caticons are showing in feeds. No pictures.

    #75265

    Hey!

    It works for me here: http://premiummoto.pl/feed – maybe you need to clear the browser cache?

    Best regards,

    Peter

    #75266

    ok, now it works.

    Thankyou

    #75267

    Good to hear Qcor. Let us know if you have any more questions!

    Regards,

    Mya

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘RSS issue’ is closed to new replies.