WP Query – Post Thumbnail

the_post_thumbnail prints data to the screen immediately. It does not return a string that you can concatenate into your $out variable. Use get_the_post_thumbnail instead. Make sure you get the arguments right. They are different from the arguments for the_post_thumbnail. Should be something like: get_the_post_thumbnail(get_the_ID(),’thumbnail’);

How do I remove featured images and captions from a wordpress RSS feed?

Have a look at http://codex.wordpress.org/Customizing_Feeds and try using a template for your feed. There are a variety of ways to customize your feeds, through the use of third-party software you install and add-on to your WordPress site, or by manually changing the feed templates to meet your needs. Find a tutorial here http://gregrickaby.com/custom-rss-template-wordpress/. There registering … Read more