I am using the script below to list the custom taxonomies, but I still need a link to the parent of the current custom taxonomy for an "All" link.
Right now the links display as:
Shoes Shirt T-Shirt
Would like to include an "All" link so it will display as:
All Shoes Shirt T-Shirt
<?php
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$children = get_term_children( $term->term_id, $term->taxonomy );
echo get_category_link( get_queried_object_id() );
if ( ! is_wp_error( $children ) && ! empty( $children ) ) {
wp_list_categories( 'taxonomy=' . $term->taxonomy . '&depth=1&show_count=0&title_li='. $title.'&child_of=' . $term->term_id );
} else {
wp_list_categories( 'taxonomy=' . $term->taxonomy . '&depth=1&show_count=0&title_li=&child_of=' . $term->parent );
} ?>