Skip to content

Instantly share code, notes, and snippets.

/functions.php
Created Mar 16, 2017

Embed
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
You can’t perform that action at this time.