Thread: Feedwordpress
View Single Post
  #10  
Old 09-20-2010, 02:34 PM
awarner20's Avatar
awarner20 awarner20 is offline
Registered User
Pro Plus Member
 
Join Date: Feb 2010
Posts: 154
Default

I've been looking more on how to create a function that might work and have found this code posted by Daisy Olsen on this thread:
Code:
add_filter('genesis_get_image', 'default_image_fallback', 10, 2);
function default_image_fallback($output, $args) {

    if( !$output && $args['size'] == 'thumbnail' && $args['format'] == 'html' && function_exists( 'get_the_image' ) )
         $output = get_the_image(array( 
        'size' => 'thumbnail',
        'image_scan' => 'true',
        'width' => '150',
        'height' => '150',
        'image_class' => 'post-image'
        ));
        return $output;
}
I've added this to my subdomain site's child theme's functions file and then imported a fresh RSS feed from the main site. Unfortunately, the only thumbnail that showed up was in the Featured Tab and not the listing of posts in the Featured Posts.

EDIT: I just realized that the Featured Tabs and Featured Posts had different image sizes chosen. I changed the Featured Posts to call the Thumbnail (150x150) size and all the thumbs showed up. However...a couple things...

1. The thumbnails that do show are above the content, even though I have align left chosen in the Featured Posts widget.

2. In order for this function to work with all aspects of the News Child Theme, the other sizes need to be added. Or would I need to add a separate function for each size?

I'm hoping that Daisy will see this and be able to advise on the two points above?
__________________
"There is hopeful symbolism in the fact that flags do not wave in a vacuum."

Arthur C. Clarke