show taxonomy term parent title
-
How do I modify this:
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->parent; ?>
To show me the the name of the parent taxonomy rather than just an integer?
Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘show taxonomy term parent title’ is closed to new replies.