Return to Snippet

Revision: 33460
at October 8, 2010 22:27 by PM-Webdesign


Initial Code
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;
}
add_filter('the_excerpt_rss', 'rss_post_thumbnail');
add_filter('the_content_feed', 'rss_post_thumbnail');

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description
Code in functions.php einfügen

Initial Title
Post Thumbnails im RSS Feed aktivieren

Initial Tags
post, wordpress

Initial Language
PHP