$args = array(
'type' => 'service',
'child_of' => 0,
//'parent' => $cat_3->cat_ID,
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 0,
'hierarchical' => 1,
'exclude' => '',
'include' => '',
'number' => '',
'taxonomy' => 'categorie',
'pad_counts' => false
);
$results_4 = get_categories( $args );
/**/
$i=1; foreach ($results_4 as $cat_4): ?>
0
$i++; endforeach; ?>
echo $cat_4->cat_name; ?>
echo term_description( $cat_4->term_id, 'categorie' ); ?>
$args_post = array(
'post_type' => 'service',
'orderby' => 'name',
'order' => 'ASC',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'categorie',
'field' => 'term_id',
'terms' => array($cat_4->cat_ID),
'include_children' => false
)
)
);
query_posts($args_post);
while ( have_posts() ) : the_post(); ?>
endwhile; ?>
