コードです。
/* 子カテゴリのスラッグを指定*/
$tax_slugs = array( 'hokkaido', 'aomori', 'fukushima' );
foreach( $tax_slugs as $tax_slug) :
// 対象のタクソノミーを指定
$taxonomy = 'albumcate';
/* 次行はスラッグからターム(カテゴリー)の名前を取得しています。各リストの前に見出しを出力しなくてもいい場合はコメントアウトするか削除してください*/
$term_info = get_term_by( 'slug', $tax_slug, $taxonomy );
$args = array(
'post_type' => 'album',
'nopaging' => true,
'hide_empty' => 0,
'tax_query' => array(
array(
'taxonomy' => $taxonomy,
'field' => 'slug',
'terms' => array( $tax_slug ),
)
)
);
query_posts($args);
if ( have_posts() ) : ?>