Thanks alchymyth
it displays:
Array ( [0] => 3 [1] => 30 [2] => 24 )
Which is basically the category ID’s.
Now the syntax for category__and is
'category__and' => array(1, 2, 3)
So if put my array which is $cur_cat_
'category__and' => $cur_cat_
which means: 'category__and' => Array ( [0] => 3 [1] => 30 [2] => 24 )
What I need now is this format:
'category__and' => array(3, 30, 24)
Any clue?