I have to obtain the parent's taxonomy ID through the sub taxonomy's title.


Italy   - parent
Livingo - sub

Around the Livingo page, I have to have the ability to get Italy's ID.

$subCategory = get_term_by( 'slug', get_query_var( 'term' ), $current_taxonomy );
$mainCategory = get_term_by( 'id', $subCategory->parent, $current_taxonomy );

Next, $mainCategory is going to be an assortment with all of particulars about this term (slug, title, parent etc).