$slug_list = array(‘test’);
foreach ( $terms as $term ) :
if($term->slug!=’toilet’){
array_push($slug_list, $term->slug);
}
endforeach;
$args = array(
‘tax_query’ => array(
‘relation’ => ‘AND’,
array(
‘taxonomy’ => ‘seko_cat’,
‘terms’ => array( ‘toilet’ ),
‘field’ => ‘slug’,
‘operator’ => ‘IN’,
),
array(
‘taxonomy’ => ‘seko_cat’,
‘terms’ => $slug_list,
‘field’ => ‘slug’,
‘operator’ => ‘NOT IN’,
),
),
‘posts_per_page’ => 15,
);
query_posts( $args );
?>
おすすめリフォームパック
※ほかにも多数商品があります。
- 通話
無料 - 携帯
OK!
お気軽にお電話ください
受付時間 10:00~17:00 (水曜日定休)
©株式会社エネチタ