COCOLIA

SHOP GUIDE カテゴリー別

'shop-list-category', 'name' => 'shop_category'), ); foreach ($taxs as $tax):?> $tax['name'], 'hide_empty' => false, ) ); for ( $j = 1; $j <= count($shop_categories); $j++): $shop_category = $shop_categories[$j-1]; $args = array( 'post_status' => 'publish', 'post_type' => 'shop', 'numberposts' => -1, 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => $tax['name'], 'field' => 'term_id', 'terms' => $shop_category->term_id, 'include_children' => false, ), ) ); if(isset($_GET['q']) && !empty($_GET['q'])) { $args = array_merge($args, array( 's' => $_GET['q'], )); } $shops = get_posts($args); if(!count($shops)){ continue; } ?>
  • term_id == $shop_category2->term_id):?>class="active" data-index="">name ?>description ?>