Get child terms of current term of the current post
I think you should rather use get_queried_object() to return the current page’s term. From there you should get the taxonomy name, term ID and the parent. Now here is my logic on this. Whenever you are on a parent term, ie. music or videos, the parent will return 0. You can use this to execute … Read more