"; endif; } function wp_rss2_include (){ $image_size = get_option('rss_image_size_op'); if (isset($image_size)) $image_url = rss_image_url($image_size); else $image_url = rss_image_url('medium'); if ($image_url != '') : $filename = $image_url; $ary_header = get_headers($filename, 1); $filesize = $ary_header['Content-Length']; echo "\n"; endif; } function rss_image_url($default_size = 'medium') { global $post; $attachments = get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'numberposts' => 1) ); if($attachments == true) : foreach($attachments as $id => $attachment) : $img = wp_get_attachment_image_src($id, $default_size); endforeach; endif; return $img[0]; } function wp_rss_img_menu() { add_options_page('WP RSS Images', 'WP RSS Images', 10, 'wp-rss-image', 'wp_rss_image_setting'); } function wp_rss_image_setting() { $image_size = get_option('rss_image_size_op'); $rss_img_ch = get_option('rss_img_ch_op'); $rss2_img_ch = get_option('rss2_img_ch_op'); if(isset($_POST['Submit'])): $image_size = $_POST["image_size"]; $rss_img_ch = $_POST["rss_img_ch"]; $rss2_img_ch = $_POST["rss2_img_ch"]; update_option( 'rss_image_size_op', $_POST["image_size"] ); update_option( 'rss_img_ch_op', $_POST["rss_img_ch"] ); update_option( 'rss2_img_ch_op', $_POST["rss2_img_ch"] ); ?>

WP RSS Images Setting

Select the size of the images

You can change the dimension of this sizes under Miscellaneous Settings.

/> Thumbnail
/> Medium Size
/> Full Size

Apply to:

/> RSS
/> RSS 2