WordPress.org

Ready to get started?Download WordPress

Forums

Get parent taxonomies instead of all (2 posts)

  1. katalonian
    Member
    Posted 2 years ago #

    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?

  2. katalonian
    Member
    Posted 2 years ago #

    no one can't help me?(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.