Reverse traversing taxonomy based on term_id
Thanks to @ialocin in his comment above, I took his recommendation and adapted it to fit my needs. Traversing the taxonomy hierarchy from the bottom up is actually relatively simple if you understand how WordPress does this from the top down. function origin_trail_ancestor($cat_id = 0, $link = false, $trail = false) { global $wp_query; $anchor … Read more