Get taxonomy name of current post

get_ancestors() should do what you need:

So, you should do something like this:

$ancestors = get_ancestors($term_id, 'projects_category)

Leave a Comment