Hello,
I have seen that the same problem happens in other themes. Now my project is online and I redirected the rss to feedburner and realize that the rss has no photos if I add them as featured media. How can I add one photo to the rss?
RSS without photos
3 posts from 2 voices-
Posted 7 months ago #
-
Hi!
You can use the code snippet I provided in this thread: http://www.kriesi.at/support/topic/featured-post-image-in-rss-feed
Best regards,
PeterPosted 7 months ago # -
It works. Copy and paste the code I used for other people
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED add_filter( 'the_excerpt_rss', 'inoplugs_insertThumbnailRSS' ); add_filter( 'the_content_feed', 'inoplugs_insertThumbnailRSS' ); function inoplugs_insertThumbnailRSS( $content ) { global $post; $slides = avia_post_meta($post->post_id, 'slideshow'); if ($slides){ $postimage = avia_image_by_id($slides[0]['slideshow_image'],'featured'); $content = '<div>' . $postimage . '</div>' . $content; return $content; } }I added it to the function.php file in my child theme. Thank you for your support.
Posted 7 months ago #
Topic Closed
This topic has been closed to new replies.














