get_category_children/ the new get_term_children not work
get_term_children returns an array or an object (WP_Error) and you are treating it like a string when you try to feed it to substr. I am not sure what you are trying to do with that line of code but in general you need to check that you are dealing with an array and not … Read more