<?php the_terms( $post->ID, 'role', '', ' / ', ' ' ); ?>
to get taxonomy (categories) listing for my post. But it’s echoes all taxonomies which i used. I want to echo only parent categories of selected taxonomies.
How i must modify to get parent categories of selected taxonomies?
- The topic ‘Get parent taxonomies instead of all’ is closed to new replies.