I don't know is this theme relate question but...
At the moment RSS feed services displays category icon of the post in the feed view in various rss services...
I would like to show a post thumbnail in the feed instead of the cat. icon...
RSS issue
6 posts from 4 voices-
Posted 1 year ago #
-
Hi Qcor,
You'll need to add the following to your functions.php that is located in your theme files:
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content; } return $content; } add_filter('the_excerpt_rss', 'insertThumbnailRSS'); add_filter('the_content_feed', 'insertThumbnailRSS');Regards,
Devin
Posted 1 year ago # -
unfortunately, still only caticons are showing in feeds. No pictures.
Posted 1 year ago # -
Hey!
It works for me here: http://premiummoto.pl/feed - maybe you need to clear the browser cache?
Best regards,
PeterPosted 1 year ago # -
ok, now it works.
ThankyouPosted 1 year ago # -
Good to hear Qcor. Let us know if you have any more questions!
Regards,
MyaPosted 1 year ago #
Topic Closed
This topic has been closed to new replies.














