Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16578

    Hello,

    I have seen that the same problem happens in other themes. Now my project is online and I redirected the rss to feedburner and realize that the rss has no photos if I add them as featured media. How can I add one photo to the rss?

    #92066

    Hi!

    You can use the code snippet I provided in this thread: http://www.kriesi.at/support/topic/featured-post-image-in-rss-feed

    Best regards,

    Peter

    #92067

    It works. Copy and paste the code I used for other people

    // 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'],'featured');
    $content = '<div>' . $postimage . '</div>' . $content;

    return $content;
    }
    }

    I added it to the function.php file in my child theme. Thank you for your support.

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

The topic ‘RSS without photos’ is closed to new replies.