Get featured image from post on RSS feed

I just found the right solution: function rss_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $output=”<p>” . get_the_post_thumbnail($post->ID) . ‘</p>’; } return $output . $content; } add_filter(‘the_excerpt_rss’, ‘rss_post_thumbnail’, 20, 1); add_filter(‘the_content_feed’, ‘rss_post_thumbnail’, 20, 1);

Adding guiding text to the ‘Featured Image’-box in the backend

If you are using the Classic Editor of wordpress, there is a function for this: https://developer.wordpress.org/reference/hooks/admin_post_thumbnail_html/ So the code would be (example from link): function filter_featured_image_admin_text( $content, $post_id, $thumbnail_id ){ $help_text=”<p>” . __( ‘Please use an image that is 1170 pixels wide x 658 pixels tall.’, ‘my_textdomain’ ) . ‘</p>’; return $help_text . $content; } … Read more