Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2017 17:25
What would you like to do?
miniature dans flux rss wordprss
function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<p>' . get_the_post_thumbnail($post->ID) .
'</p>' . get_the_content();
return $content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment