Warning: urlencode() expects parameter 1 to be string, array given

I’m not sure exactly what’s happening, but I can guess based on a few context clues. That particular function is parse_tax_query. It appears to be checking if the taxonomy is hierarchical, I assume it’s expecting a string that could possibly be a parent/child path of terms, so it uses basename to get the actual term queried- the next line is $term = $q[$t->query_var];

Leave a Comment