Re: functions.php in child theme?
it has to be this part that is causing the problem, any ideas how to make it work called from the child theme folder? i am afraid to do the upgrade to 1.1.2 from 1.1.1 with stuff in the parent them!
‘
function postimage($width,$height) {
$scriptpath = get_bloginfo(‘template_directory’);
$attachments = get_children(array(‘post_parent’ => get_the_ID(), ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘orderby’ => ‘menu_order’));
if (!is_array($attachments)) {
$image = $scriptpath.”/images/empty.gif”;
echo ‘<img style=”border:none;margin:0;” src=”‘.$scriptpath.’/scripts/timthumb.php?src=’.$image.’&zc=1″ alt=”” />’;
}
else {
$img = array_shift($attachments);
$imagelink = wp_get_attachment_image_src($img->ID,’full’);
$image = $imagelink[0];
echo ‘<img src=”‘.$scriptpath.’/scripts/timthumb.php?src=’.$image.’&w=’.$width.’&h=’.$height.’&zc=1″ alt=”” />’;
}
}’