Filter 'the_content_feed' or 'the_excerpt_rss' and use a thumbnail image of your choice.
Sample code, not tested:
add_filter( 'the_content_feed', 'wpse_70249_custom_thumb' );
add_filter( 'the_excerpt_rss', 'wpse_70249_custom_thumb' );
function wpse_70249_custom_thumb( $content )
{
global $post;
$thumb_size="post-thumbnail";
if ( in_category( 'orange', $post )
{
$thumb_size = array ( 500, 500 );
}
if ( in_category( 'apple', $post )
{
$thumb_size = array ( 100, 100 );
}
$thumb = get_the_post_thumbnail( null, $thumb_size );
return $thumb . $content;
}
Related Posts:
- Displaying images from external RSS feeds?
- How to grab first image attached to post and display in RSS feed?
- Can’t Display Featured Image in RSS Feed
- Change the RSS feed image
- force feed readers to pick atom version
- How to add image in rss?
- Modify RSS – remove image and add text
- Forcing absolute src links in the RSS feed
- Get content from one WordPress website to another
- What’s the proper way to find and remove duplicate images from posts and the media library?
- get_post_gallery with Gutenberg
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Insert an image into a post by API
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Creating a rotating header /image slider using theme customization
- Add aditional class to get_avatar when showing image
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Double thumbnails?
- No srcset for hard-cropped thumbnails
- Loop through child images of a parent for a Nivo Slider
- Slider image issue in wordpress
- Limit author image size
- Remove the http protocol from images
- Retrieving images from a NextGEN gallery
- Query for recent images across multiple posts
- Getting alt text of featured image
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- How to change image url?
- WordPress reduces the full size image and uses it as the original
- Show taxonomy list with taxonomy images ( SOLVED)
- get_children() not working properly – Only on one post?
- Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 [closed]
- How to add data attribute to all images in posts [closed]
- How to order images in a post in WordPress 3.3?
- Output random (custom) image size
- WordPress crops images differently on retina screens?
- Image thumbnails not available post migration, but still accessible via direct URL – DB issue
- Override img class in gallery
- Image URLs stopped working due to Permalinks?
- Every admin only can see his uploaded images im editor
- How to open default wp image editor screen dynamically?
- How can I add a “data-pin-nopin” the featured image html?
- Hardcoded Images Too Big
- update_post_meta attachment_image_alt description for Gutenberg
- Auto delete attachments that are older than x days
- Image increasing kb on resize
- 409 error (Conflict) when trying to insert an image into a post
- Exclude image titles from search results
- Facebook og:image issues after https change [closed]
- Does WP create multiple images?
- Thumbnails generated by “add_image_size” are not removed when removing media
- WordPress 3.0 embedded images
- TImthumb not working for absolute path
- Correctly implementing the Facebook Like button
- How to use Facebox in WordPress theme?
- Mass crop images: Landscape images -> Portrait images
- Change image name during uploading sequentially
- Store in media library image uploaded from url
- How to redirect homepage to actual URL?
- Get images attached to a specific page
- add_image_size function not working
- image resizing on post content without css and html tags
- Stop WordPress compressing images? – Quality is terrible
- Cropped image file size larger than original, is it normal?
- Using mysql to replace img src?
- wordpress add image size crop function not working in version 3.8
- How do I display the featured image from an image gallery using a reference in code? (example within)
- caption shortcode inserts blank paragraph
- Doing a bulk replace of images through back-end
- How to change background slider image when hovering on text?
- Can I achieve this with WordPress?
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- I would like to set a FULL SCREEN background image to all my pages (same way it is on my home page)
- How to change a theme’s footer image
- Enlarge Featured WordPress Images
- WordPress 4.4.2 upload give error, can’t write is upper directory allowed to be written
- Responsive Images – Defining
- How to attach 1000’s of unattached images
- WordPress Javascript displaying an image Question
- Using a full-width hero image that can be changed in the dashboard by a user
- Resize External Image
- Images are not getting uploaded
- Unable to delete images in Media Library
- Background image call problem
- Assigning image to Post-Type won’t work anymore: exceeded time?
- Getting featured image of blog page rather than post image
- How to change default image rename?
- Link images to post
- Image attachement management – a philosophical question
- wp_get_attachment_link() add rel attribute if the link points to direct image
- Getting top Image From the Gallery and printing out a thumbnail with Exact Dimensions
- Add custom version to an image
- How to get some information from the_content [closed]
- Custom Background Image per Page
- How to add a link to media file for every image inserted in content?
- Define how an attached image is rendered
- All WordPress Website Images Broken
- image doesn’t display when option on product page chosen