http://ja.forums.wordpress.org/topic/7806
ここ参照
<?php
$term = get_term_by('slug',get_query_var( 'term' ),get_query_var( 'taxonomy' )
);
?>
<?php
if ( $term->parent ) { // 子?
$posts = get_posts( array(
'taxonomy' => get_query_var( 'taxonomy' ),
'term' => get_query_var( 'term' ),
) );
?><ul><?php
foreach ( (array) $posts as $post ) :
setup_postdata( $post );
printf('<li><a href="%1$s">%2$s</a></li>',
esc_url( get_permalink( get_the_ID() ) ),
esc_html( get_the_title( get_the_ID() ) )
);
endforeach;
?></ul><?php
wp_reset_postdata();
} else {
wp_list_categories( array(
'taxonomy' => get_query_var( 'taxonomy' ),
'child_of' => $term->term_id,
'hide_empty' => 0,
) );
}?>