get posts with custom tax and custom fields
// WP_Query arguments
$args = array(
'post_type' => array( 'tribe_events' ),
'post_status' => array( 'publish' ),
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'artwork_tags',
'terms' => 's',
'field' => 'name',
'operator' => 'IN',
),
),
'meta_query' => array(
'relation' => 'OR',
array(
'key' => '_EventStartDate',
'value' => 'startDate',
'compare' => '=',
'type' => 'DATE',
),
array(
'key' => '_EventStartDate',
'value' => 'datrtDate2',
'compare' => '=',
'type' => 'DATE',
),
),
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();