M
M
Mikhail Gilmutdinov2018-09-03 11:13:14
RSS
Mikhail Gilmutdinov, 2018-09-03 11:13:14

How to remove img sizes in Wordpress rss?

The RSS validator complains about setting image sizes in RSS.
Tell me who can, how can they be removed from the RSS feed.
I display Thumbnail using the function

function mayak_image_rss($content) { 
global $post;
if ( has_post_thumbnail( $post->ID ) ) { 
$content = '' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'float:left; margin:0 10px 10px 0;' ) ) . '' . $content; 
}
return $content; 
} 
add_filter('the_excerpt_rss', 'mayak_image_rss');

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question