タクソノミーとカテゴリーをチェックボックスにしてだらっと出す

function search_term($term){
$tax = get_terms( $term, 'order=DESC&hide_empty=0' );
    foreach ( $tax as $term ) {
	    echo '<span><input type="checkbox" name="'.$term->taxonomy.'" id="'.$term->taxonomy.$term->term_id.'" value="'.$term->term_id.'" />';
	    echo '<label for="'.$term->taxonomy.$term->term_id.'">'.esc_html($term->name).'</label></span>';
     }
     
}