Title: Featured Images use
Last modified: August 20, 2016

---

# Featured Images use

 *  Resolved [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/)
 * Can this plugin include the ability to use Featured Images of posts first, if
   available, then first available image in post?
 * Im finding the first avilable image not working if there is text before the image.
   Its very inconsistent in reading the images from the excerpts….half the time 
   it doesnt pick them up.
 * [http://wordpress.org/extend/plugins/wp-rss-multi-importer/](http://wordpress.org/extend/plugins/wp-rss-multi-importer/)

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/featured-images-use/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/featured-images-use/page/2/?output_format=md)

 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203675)
 * Right now, it picks up the very first image in the content and if that’s not 
   there it then looks to the enclosure to see if an image is there.
 * If there are words before the first image, it won’t pick up the image. This was
   made necessary because otherwise a lot of the images that would be picked up 
   are advertisements.
 * Perhaps you could leave an example RSS feed where you are having this problem
   so I can see what’s going on.
 *  Thread Starter [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203713)
 * Hi Allen, thanks for responding.
 * Yes, it was indeed text being before the image. Is there an easy way to change
   that functionality in the code, to use any image regardless if text before it?
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203715)
 * Well, that would require having a rule of some sort, so one can write a program.
   It’s not clear what that rule would be without bringing in all types of potential
   problems. For example, would the first sentence always end in a period. Or maybe
   an exclamation point, etc Would you discard the first sentence, etc. this has
   to be clarified to make this possibly work.
 *  Thread Starter [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203721)
 * Hi Allen,
 * I found a solution thats works great. I added this to my functions.php file…
 *     ```
       //add post thumbnails to RSS images
       function cwc_rss_post_thumbnail($content) {
           global $post;
           if(has_post_thumbnail($post->ID)) {
               $content = '<p>' . get_the_post_thumbnail($post->ID) .
               '</p>' . get_the_excerpt();
           }
   
           return $content;
       }
       add_filter('the_excerpt_rss', 'cwc_rss_post_thumbnail');
       add_filter('the_content_feed', 'cwc_rss_post_thumbnail');
       ```
   
 * This puts my post-thumbnail into the RSS feed, which crops images to a set height
   and width. I just had today a client add an image into a post with a size of 
   620 x 4477. Yes, 4,477 pixels high, an infographic. That was a disaster in the
   feed. This way, Im able to use WordPress’ built in cropping of featured images
   to throw into the feed.
 * Maybe there is some way you can add that to your plugin code as an option?
 * Thank you, your plugin works awesome now.
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203722)
 * So, this is what you are using in the RSS feed for people to subscribe to from
   your site? If so, it’s straightforward, as your code shows to take something 
   from wordpress and put it into a feed. The problem is the other way around, since
   the feeds that come in have no consistent structure, aside from the RSS tags.
   My plugin can easily get images that are in enclosures, and those that come first
   in the description and content tags, it gets tricky when the image comes after
   a bunch of text. Now, this isn’t a problem for someone who wants all the content
   in the tag (that’s why I have a “Give Me Everything” option), but that’s a dump
   of the entire contents, rather than nicely selecting the image and floating it
   to the left, etc.
 * Now, finally, if you’re going to input your own feeds onto your site, you have
   a lot more control, but this would simply require changing my code to know where
   the images are, etc.
 *  Thread Starter [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203723)
 * Its not for people to subscribe to. Its actually to be an rss aggregate for the
   multisite blogs, and to then use the shortcode on the landing page to have 4 
   feeds combined as a portal page.
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203724)
 * oh..interesting…people could actually use my plugin to combine the feeds from
   blogs and put on the first page (that’s how I’ve used it). Ok, let me see if 
   it’s possible to do something…thanks
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203725)
 * also, can you give me an example of an RSS feed that you know of that exemplify
   having the image after text so I can see if I can provide this option.
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203726)
 * ok..I think i have a solution…are you interested in trying it out? I would send
   you a replacement for one file.
 *  Thread Starter [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203732)
 * Sure. Sounds good
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203734)
 * ok…contact me at
 * [http://www.allenweiss.com/contact](http://www.allenweiss.com/contact)
 * and I’ll send you a replacement file that will pick up the first image it finds
   if it can’t find one in the enclosure or the leading image.
 *  Thread Starter [greekdish](https://wordpress.org/support/users/greekdish/)
 * (@greekdish)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203749)
 * Thank you Allen for the wonderful work!
 *  [jjspress](https://wordpress.org/support/users/jjspress/)
 * (@jjspress)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203787)
 * Hello Allen. I’m having the same “problem” that Greekdish was having. My thumbnails
   show up on the individual page FEEDS but it doesn’t show up on the home page.
   How did you resolve this?
 * Hello Greekdish where did you enter that code? I would like to try it out.I’m
   not as php savvy as you two but I learn quickly.
 * My blog is [http://www.mobtreal.com](http://www.mobtreal.com)
 * Thank you both for your time!
    Cheers
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203788)
 * Have you downloaded the most recent version (2.51)?
 *  [jjspress](https://wordpress.org/support/users/jjspress/)
 * (@jjspress)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/#post-3203789)
 * I just did. I clicked the download 2.51, extracted but how do I get it update
   on ,WP?

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/featured-images-use/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/featured-images-use/page/2/?output_format=md)

The topic ‘Featured Images use’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-rss-multi-importer_a9b8a0.svg)
 * [WP RSS Multi Importer](https://wordpress.org/plugins/wp-rss-multi-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-multi-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-multi-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-multi-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-multi-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-multi-importer/reviews/)

 * 26 replies
 * 3 participants
 * Last reply from: [Allen](https://wordpress.org/support/users/amweiss98/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/featured-images-use/page/2/#post-3203805)
 * Status: resolved