get_queried_object();
$current_term_id = $current->term_id;
$current_name = $current->name;
$current_taxonomy = $current->taxonomy;
$current_parent = $current->parent;
//$terms = get_terms('manual_cat');
$terms = get_terms( array(
'taxonomy' => $current_taxonomy,
//'child_of' => $current_term_id,
//'hide_empty' => false,
//'parent' => 0,
) );
foreach( $terms as $term ):
?>
'manual',
'tax_query' => array(
array(
'taxonomy' => $term->taxonomy,
'field' => 'slug',
'terms' => $term->slug,
//'operator ' => 'IN',
)
),
'posts_per_page' => -1,
'order' => 'ASC',
));
foreach($posts as $post): // begin cycle through posts of this taxonmy
setup_postdata($post); //set up post data for use in the loop (enables the_title(), etc without specifying a post ID)
?>