• Resolved Rodrigo Lima

    (@rodrigoflausino)


    HI! Today i begin to try the insert more content in RSS feed for webstories section. But its only shows the link title, URL and first image.

    Anyone have tips for i can get more fields? I try to search more tutorials and tips for use in WP-Code snippet. I get a victory today with the use the main feed with posts and web stories too. And i only get the first image with a plugin.

    Thanks in Advanced!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Luckyna San

    (@luckynasan)

    @rodrigoflausino Please note that this RSS feed is generated by WordPress, not the Web Stories plugin. If you have questions about these RSS feeds provided by WordPress, you’ll need to ask in the general support forums.

    Thread Starter Rodrigo Lima

    (@rodrigoflausino)

    Hi! But why the RSS feed from web stories only shows a title and poster image ? Its defined in WordPress Core and i need to ask in General Support Forums?

    I tried to search tips for insert more data and didn’t sucess. I’m only set the “related posts” with YARPP and feature image with other plugin, and shows the same images 2 times for each story.

    Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there, you’re right, the RSS feed by default only shows the story poster image and nothing else.

    You could use the the_content_feed filter (or the_excerpt_rss, depending on your feed settings) in WordPress to add additional content there, such as the story description. Something like this could work:

    add_filter(
    	'the_content_feed',
    	static function( $content ) {
    		$post = get_post();
    
    		if ( ! $post || 'web-story' !== $post->post_type ) {
    			return $content;
    		}
    
    		// Add the story's excerpt to the feed content, before the story poster image.
    		return '<p>' . $post->post_excerpt . '</p>' . $content;
    	},
    	100
    );
    Thread Starter Rodrigo Lima

    (@rodrigoflausino)

    Hi! The the_excerpt_rss worked! Thanks for help too!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show story description (or other content) in RSS feed’ is closed to new replies.