Support » Fixing WordPress » Get parent taxonomies instead of all

  • katalonian

    (@katalonian)


    Hi there.
    I using <?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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get parent taxonomies instead of all’ is closed to new replies.