How to get parents of custom taxonomy, as what get_category_parents() do? May 19, 2022 by Tarik Billa There is a more generic function: it’s called get_ancestors() and it’s found in wp-includes/taxonomy.php