• Phil

    (@owendevelopment)


    Taken me ALL day to get images working in category feeds. Now that’s sorted, I need to change the thumbnail size for the RSS images ONLY (not across the site).

    Is there a file which stipulates the RSS image size or is it controlled via the thumbnail size in admin settings?

Viewing 3 replies - 1 through 3 (of 3 total)
  • how do you bring in the thumbnail?

    http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail#More_Options

    lists the available sizes…..it looks like you can also specify a size…

    $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;

    in this line here (at least that’s how I bring in the thumbnail), so I could swap out the thumbnail size for a different size here:
    ( $post->ID, 'thumbnail' )

    Thread Starter Phil

    (@owendevelopment)

    I got the thumbnails by adding in:

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
    function insertThumbnailRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
    }
    return $content;
    }
    
    add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    add_filter('the_content_feed', 'insertThumbnailRSS');

    But images in RSS are coming out at 150px x 150px (even though my theme doesn’t use this size). I’ve tried using WP RSS Images plugin which should let you change the size of RSS images, but it hasn’t made a difference.

    have you tried my suggestion? changing the size in the code? You can use one of the preset image sizes mentioned in the link I posted above, or, I would think a custom image size you define using add_image_size

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

The topic ‘Increasing RSS feed image to full size’ is closed to new replies.