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

    Hi, there–

    We have two websites that are using the Enfold theme and we want the featured images to show in RSS feeds. I found your tips for this at https://kriesi.at/support/topic/featured-image-in-rss-feed/ and applied the suggested script below to functions.php, but I don’t see any images feeding through. In fact, the one or two images that for some reason were showing in the feed no longer are there. I’m using feedly.com by the way. Any suggestions?

    function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = ‘<div>’ . get_the_post_thumbnail( $post->ID, ‘medium’, array( ‘style’ => ‘margin-bottom: 15px;’ ) ) . ‘</div>’ . $content;
    }
    return $content;
    }
    add_filter(‘the_excerpt_rss’, ‘featuredtoRSS’);
    add_filter(‘the_content_feed’, ‘featuredtoRSS’);

    #1097640

    Hey GWS,

    As a first try can you please update one site to the beta version provided below (has some fixes with RSS, feeds, and ALB).

    Do not forget to keep a backup of the original theme files for a fallback.
    Clear server and browser cache.

    Best regards,
    Günter

    #1098989

    This appears to have done the trick. Thank you!

    #1099082

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘RSS Feed – Images not showing’ is closed to new replies.