I’m trying to use cat_is_ancestor_of() for custom taxonomy categories but it’s not working. Is there any other way to check if a category is child of another?
Leave a Reply
You must be logged in to post a comment.
I’m trying to use cat_is_ancestor_of() for custom taxonomy categories but it’s not working. Is there any other way to check if a category is child of another?
You must be logged in to post a comment.
Use
term_is_ancestor_of()
. That is the functioncat_is_ancestor_of()
is calling: