-
- $terms = get_terms( $taxonomy, $args );
- if ( !empty( $search ) ) // Ignore children on searches.
- $children = array();
- else
- $children = _get_term_hierarchy( $taxonomy );
-
- // Some funky recursion to get the job done( Paging & parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake
- $out .= $this->_rows( $taxonomy, $terms, $children, $offset, $number, $count );
- } else {
- $terms = get_terms( $taxonomy, $args );
- foreach ( $terms as $term )
- $out .= $this->single_row( $term, 0, $taxonomy );
- $count = $number; // Only displaying a single page.