再次使用get_term_by()
功能:
$curr_taxonomy = get_query_var(\'taxonomy\');
$term = get_term_by( \'slug\', get_query_var(\'term\'), $curr_taxonomy );
if ( $term !== FALSE && $term->parent > 0 )
$parent_term = get_term_by(\'id\', (int) $term->parent, $curr_taxonomy );
else
$parent_term = false;