Using multiple variables to assign categories to an array
To make an array, separate your values with commas rather than concatenate them with periods. $upostcat= array ( $video, $image, $audio, $writing, $event ); That part is pure PHP. However, I notice you want to use the category_name “array”. If you are talking about WP_Query, category_name does not accept an array– really this is the … Read more