* @version 0.9 * * This function displays a neat little list that looks (nearly) exactly like wp_list_categories. Just call it, filling in the required data. * You need to have a taxonomy to do this. Tags do not work in this iteration. * * $args should be in one set of quotations, seperated by &. Do not seperate them by commas/seperate quotes * * @todo Make this work with Tags * * @uses wp_parse_args * @uses get_terms * @uses get_bloginfo * * @param string $taxonomy Required. The taxonomy you want to list. * @param array $args Optional. Override default arguments. * @return string Returns an HTML list of items in a taxonomy. */ function bs_list_taxonomies($taxonomy, $args='') { $defaults = array( 'title_li' => ucfirst($taxonomy), 'echo' => 1, 'tack_on' => 1, 'no_value' => 'None', 'no_value_link' => '' ); $r = wp_parse_args( $args, $defaults ); $term = get_terms($taxonomy); $output = '
  • ' . $r['title_li'] . '
  • '; // $output=apply_filters( whatever_you_want, $output); if ( $r['echo'] ) { echo $output; } else { return $output; } } ?>