//miniature dans le rss
function excerptrss_with_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID) and !is_singular()) {
$content = '
' . get_the_post_thumbnail($post->ID,array(150,150)) .
'
' . get_the_excerpt();
}
return $content;
}
function contentrss_with_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID) and !is_singular()) {
$content = '' . get_the_post_thumbnail($post->ID,array(150,150)) .
'
' . get_the_excerpt();
}
return $content;
}
add_filter('the_excerpt_rss', 'excerptrss_with_thumbnail');
add_filter('the_content_feed', 'contentrss_with_thumbnail');