show parent get_the_terms code example
Example: get_terms only parent
$myterms = get_terms( array( 'taxonomy' => 'taxonomy_name', 'parent' => 0 ) );
$myterms = get_terms( array( 'taxonomy' => 'taxonomy_name', 'parent' => 0 ) );