Post image not shown in feed since 3.5
-
Hey guys
I just updated WP to 3.5 and noticed, that my script for adding the post image to the rss feed doesn’t work anymore. There’s no error, just no Picture in the feed. Here is my code, which worked fine until now:
function my_feed_thumbnail($content) {
if (is_feed() && has_post_thumbnail()) {
return the_post_thumbnail( ‘single-post-thumbnail’ ) . $content;
}
return $content;
}
add_filter(‘the_content’, ‘my_feed_thumbnail’);Were there changes to the API?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Post image not shown in feed since 3.5’ is closed to new replies.