Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm currently working on a test website on my local server using WordPress version 3.4.2. I've tried various different solutions. Some have included installing various plugins, such as WP RSS Images and Featured Image in RSS. Even tried some of the solutions from the following posts:

Yet, it seems the images aren't being posted to the RSS feeds. Is there another solution that can solve this problem?

The RSS feed I'm trying to include images is this link.

Any help is appreciated!

share|improve this question
    
This works out of the box in WordPress core, and the RSS feed you linked does include featured images. Where is the problem? –  Chip Bennett Dec 20 '12 at 15:50
    
@ChipBennett That's weird because on my computer, the images aren't displaying in the RSS feeds. –  Abriel Dec 20 '12 at 16:24

2 Answers 2

Strange none of the links above doesn't work for you.

You can try this using Custom RSS Feed method very well explained by Joost ( For reference: http://yoast.com/custom-rss-feeds-wordpress/ ). Using this way, you can display any of the fields either custom field value or featured image.

share|improve this answer
1  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Pieter Goosen Aug 24 at 17:30

By default, RSS won't display. You have to use RSS2. However this will help you. Paste it in your functions.php:

function insert_thumbnail_into_feed() {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
    // replace thumbnail with yours
    $content = '<p>' .get_the_post_thumbnail( $post->ID, 'thumbnail' ) .'</p>';
}

// get post content and replace feed content with
// you can also limit/filter the content to exclude shortcodes and HTML code etc.
$content .= '<p>' .get_the_content() .'</p>';

return $content;
}

Hope it helps.

share|improve this answer
    
Where's the filter hook? –  Brad Dalton Jul 25 at 1:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.