Hello,
In Replete theme , how to include large image in Feed (first image of gallery)? I tested sample code http://www.kriesi.at/support/topic/featured-post-image-in-rss-feed but not show any image. Any ideas?
Thanks in advanced!!
Hello,
In Replete theme , how to include large image in Feed (first image of gallery)? I tested sample code http://www.kriesi.at/support/topic/featured-post-image-in-rss-feed but not show any image. Any ideas?
Thanks in advanced!!
Hi infoept,
Which image size did you include in the function provided there?
The image names for Replete are those listed in the functions.php in:
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
$avia_config['imgSize']['slider_thumb'] = array('width'=>70, 'height'=>50); // slideshow preview pics
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries
$avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['featured_small'] = array('width'=>990, 'height'=>280 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>241, 'height'=>179 ); // images for portfolio 4 columns
$avia_config['imgSize']['logo'] = array('width'=>446, 'height'=>218, 'copy'=>'greyscale'); // images for dynamic logo/partner element
//dynamic columns
$avia_config['imgSize']['dynamic_1'] = array('width'=>492, 'height'=>165); // images for 2/4 (aka 1/2) dynamic portfolio columns when using 3 columns
$avia_config['imgSize']['dynamic_2'] = array('width'=>676, 'height'=>151); // images for 2/3 dynamic portfolio columns
$avia_config['imgSize']['dynamic_3'] = array('width'=>765, 'height'=>107); // images for 3/4 dynamic portfolio
Regards,
Devin
Hi Devin,
I provided "featured_small" image size. Sample code:
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
add_filter( 'the_excerpt_rss', 'inoplugs_insertThumbnailRSS' );
add_filter( 'the_content_feed', 'inoplugs_insertThumbnailRSS' );
function inoplugs_insertThumbnailRSS( $content ) {
global $post;
$slides = avia_post_meta($post->post_id, 'featured_small');
if ($slides){
$postimage = avia_image_by_id($slides[0]['slideshow_image'],'thumbnail');
$content = '<div>' . $postimage . '</div>' . $content;
return $content;
}
}
RSS Feed only show title entry. It's possible to add content entry?
Thanks!
This code won't work. You need to change the thumbnail size by modifying following line:
$postimage = avia_image_by_id($slides[0]['slideshow_image'],'thumbnail');
Replace "thumbnail" with another size like:
$postimage = avia_image_by_id($slides[0]['slideshow_image'],'featured_small');AHH! With this code works correctly..
Thank you!
This topic has been closed to new replies.