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

    Hi,
    I have no featured image with RSS Feed.
    I would like it for the Google news RSS feed for exemple.
    Is it caused by ENFOLD theme ?
    How can I have it ?
    I have tried some plugins but without success. But each time, there is no featured image.
    I selected full-text under Settings–>Reading.

    Thanks

    #575640

    Hi ppi37,

    Maybe this tutorial will help you out? http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-rss-feeds-in-wordpress/

    Thanks,
    Rikard

    #578113

    Hi Rikard,
    The tutorial :
    All you have to do is open your theme’s functions.php file and add the following code :

    function rss_post_thumbnail($content) {
    global $post;
    if(has_post_thumbnail($post->ID)) {
    $content = ‘<p>’ . get_the_post_thumbnail($post->ID) .
    ‘</p>’ . get_the_content();
    }
    return $content;
    }
    add_filter(‘the_excerpt_rss’, ‘rss_post_thumbnail’);
    add_filter(‘the_content_feed’, ‘rss_post_thumbnail’);

    _________________
    I do it, but nathing change.
    There is no thumbnail ????

    Thanks

    #578346

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.