Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5857

    hi!

    when people sign up to see my site in their reader of choice, they can read the text but the images don’t show up. is there any code i can include to make the images/thumbnails/anything appear with the text in their readers?

    thanks!

    courtney

    mothdrawn.com

    #51969

    Hey,

    you can add following code in functions.php:

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
    add_filter( 'the_excerpt_rss', 'inoplugs_insertThumbnailRSS' );
    add_filter( 'the_content_feed', 'inoplugs_insertThumbnailRSS' );
    function inoplugs_insertThumbnailRSS( $content ) {

    global $post;
    $slides = avia_post_meta($post->post_id, 'slideshow');
    if ($slides){
    $postimage = avia_image_by_id($slides[0]['slideshow_image'],'thumbnail');
    $content = '<div>' . $postimage . '</div>' . $content;

    return $content;
    }
    }

    You need to clear the browser cache to see any feed changes.

    #51970

    it worked! fantastic! thank you so much.

    mothdrawn.com

    #51971

    Glad that Dude could help :)

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

The topic ‘images in feeds’ is closed to new replies.