cat
needs to be an int
or string
, and you are passing an array
. Either use category__in
instead, which accepts an array, or convert $cat
to a string of values with implode(',', $cat)
cat
needs to be an int
or string
, and you are passing an array
. Either use category__in
instead, which accepts an array, or convert $cat
to a string of values with implode(',', $cat)