I need to query posts using certain taxonomy category, but more than one category of the taxonomy, as I can with posts categories..
For example, I have the Portfolio custom posts, and the Project Type to organize it (same as categories); So, we have Animation, draw, icons and painting types of project. I need to create an loop that will query animations and painting types only (query more than one king of portfolio type).
I thinked that tax_query would do it, but this tax_query selects only posts that are in the animations and paintings at the same time
My last code was:
$args['tax_query'] = array(
array(
'taxonomy' => 'project-type',
'field' => 'id',
'terms' => array(1,2) // don't work as I need, it's a exclusion)
)
Thank you in advance!