I need to get the parent’s taxonomy ID by the sub taxonomy’s name.
E.g.:
Italy - parent
Livingo - sub
On the Livingo
page, I need to be able to get Italy
‘s ID.
I need to get the parent’s taxonomy ID by the sub taxonomy’s name.
E.g.:
Italy - parent
Livingo - sub
On the Livingo
page, I need to be able to get Italy
‘s ID.
You must be logged in to post a comment.
After that,
$mainCategory
will be an array with all details about that term (slug, name, parent etc).