How to get the top most term (top ancestor) of a custom taxonomy child term?

I guess this function is what you are looking for -> get_ancestors()

Leave a Comment