• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add post featured image to RSS item tag?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to add post featured image to RSS item tag?

This topic is: resolved

Tagged: featured image, rss feed

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 2 months ago by Anita.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 25, 2021 at 2:41 am #502798
    ssamioglu
    Participant

    How can I add post featured image to my rss feed as item tag.

    I have used;
    function wpsitesdotnet_post_thumbnail_rss($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'rss-image', array( 'style' => 'float:left; margin-right:10px; height: 150px; width: 300px; border: 2px solid #e5e5e5' ) ) . '' . $content;
    }
    return $content;
    wp_reset_postdata();
    }
    /**
    * @author Brad Dalton
    * @example http://wpsites.net/web-design/add-featured-image-thumbnail-from-post-to-rss-feed/
    */
    add_filter('the_content_feed', 'wpsitesdotnet_post_thumbnail_rss');
    add_filter('the_excerpt_rss', 'wpsitesdotnet_post_thumbnail_rss');

    but this code made my rss feed as a summary I assume, I want to show entire content with featured image in my rss feed.

    I am using news pro Latest version

    https://www.akillisebekeler.com/
    January 25, 2021 at 9:08 am #502802
    Anita
    Keymaster

    If you want to show the entire content, you should go to Settings > Reading. Scroll down to "For each post in a feed, include". Check the box "Full text".


    Love coffee, chocolate and my Bella!

    January 25, 2021 at 12:38 pm #502805
    ssamioglu
    Participant

    thank you Anita, what about to featured image into the rss feed?

    January 25, 2021 at 1:19 pm #502806
    Anita
    Keymaster

    I used and recommend Send Images to RSS.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble