ID, 'home-thumb', array( 'title' => esc_attr( get_the_title() ) ) ); } else { $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' => null, 'post_mime_type' => 'image', 'post_parent' => $post->ID, ); $first_attachment = get_children( $args ); if ( $first_attachment ) { foreach ( $first_attachment as $attachment ) { $thumb = wp_get_attachment_image( $attachment->ID, 'home-thumb', false, array( 'title' => esc_attr( get_the_title() ) ) ); } } else { $thumb = '
'; } } ?>
>

'' ) ); ?>
>