Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14930

    Hi,

    I am referring to this posting in the Sentence-Section:

    http://www.kriesi.at/support/topic/add-image-to-rss

    I would like to have the same solution for Newscast.

    I tried what is mentioned above, but it did not work out.

    How to do it in Newscast?

    http://www.kletterbericht.de/

    Best Boris

    #85554

    Hi Boris,

    I’m going tag this for Dude since I’m not entirely sure what the difference would be in the code.

    Regards,

    Mya

    #85555

    Add following code to 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;
    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
    'display_link' => '_prev_image_link', // '_prev_image_link' or array('lightbox')
    'linkurl' => '',
    'wh' => $k_option['custom']['imgSize']['M']
    ));

    if ($preview_image){
    $content = '<div class="featuredimg">' . $preview_image . '</div>' . $content;
    }

    return $content;
    }

    #85556

    Dude, you are my Hero! ;-)

    Works perfectly!

    #85557

    Hi!

    Glad that I could help you :)

    Best regards,

    Peter

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

The topic ‘Add images to RSS (with Feedburner)’ is closed to new replies.