get_the_category and echo out link to child-most/deepest category June 7, 2022 by Tarik Billa Might get_category_parents() be helpful? It outputs a list of all hierarchical parents of the given category.