Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Images not showing in RSS feed

  • Influential Visions Podcast

    Hello I am trying to get my mailer software to import the image from the RSS feed for our newsletter.
    Please can you help?

    The domain is https://influentialvisions.com/

    Thanks in advance,
    Nat

  • Hi there,

    WordPress doesn’t include them by default.
    But you can try telling it to do so by adding this PHP Snippet to your site:

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

    How to Add PHP:
    https://docs.generatepress.com/article/adding-php/

  • Influential Visions Podcast

    Thanks David, I did try the WordPress setting first and appreciate this PHP, now it is showing in the feed so the next step is to try again with the mailer software…

    Appreciate your time, thanks so much.
    Nat

  • You’re welcome

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