Title: Exclude caption from RSS feed
Last modified: August 30, 2016

---

# Exclude caption from RSS feed

 *  Resolved [Maelig](https://wordpress.org/support/users/maelig/)
 * (@maelig)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-caption-from-rss-feed/)
 * The plugin works great, there is just one small thing that I would like to fix
   and haven’t found a solution for yet. I want to display thumbnail versions of
   featured images in my RSS feed but WITHOUT the caption (so I want the caption
   to only display for the single-post). Any idea how to do that? For reference 
   the code I used to add images to my feed :
 *     ```
       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');
       ```
   
 * [https://wordpress.org/plugins/featured-image-caption/](https://wordpress.org/plugins/featured-image-caption/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Christiaan Conover](https://wordpress.org/support/users/cconover/)
 * (@cconover)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-caption-from-rss-feed/#post-6299288)
 * Thanks for raising this point! You’re not the first person to mention restricting
   the caption data to only be shown on single post screens, and I have that on 
   the todo list for the plugin.
 *  Thread Starter [Maelig](https://wordpress.org/support/users/maelig/)
 * (@maelig)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/exclude-caption-from-rss-feed/#post-6299306)
 * Thanks for the fast response, looking forward to it!
 *  Plugin Author [Christiaan Conover](https://wordpress.org/support/users/cconover/)
 * (@cconover)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/exclude-caption-from-rss-feed/#post-6299636)
 * I’ve added support in version 0.8.2 for restricting the auto-appended caption
   to only display on single posts.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude caption from RSS feed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/featured-image-caption_884578.svg)
 * [Featured Image Caption](https://wordpress.org/plugins/featured-image-caption/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-caption/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-caption/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-caption/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-caption/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-caption/reviews/)

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * 3 replies
 * 2 participants
 * Last reply from: [Christiaan Conover](https://wordpress.org/support/users/cconover/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/exclude-caption-from-rss-feed/#post-6299636)
 * Status: resolved