Support

Account

Home Forums Front-end Issues Display first level taxonomy automatically Reply To: Display first level taxonomy automatically

  • <?php 
    $leveltwo = get_term( get_field( 'listing_priv_location' ), 'location' );
    echo $leveltwo->name;
    $term = get_term($leveltwo->parent, $leveltwo->taxonomy);
    echo ', ',$term->name;
    ?>