$tax_query[] = array
( 'taxonomy' => 'post_tag',
'terms' =>
array_filter( array_map( 'intval',
$block->context
['query'
]['tagIds'
] ) ),
'include_children' => false,
);
} $query['tax_query'
] =
$tax_query;
} if ( !
empty( $block->context
['query'
]['taxQuery'
] ) ) { $query['tax_query'
] = array
();
foreach ( $block->context
['query'
]['taxQuery'
] as $taxonomy =>
$terms ) { if ( is_taxonomy_viewable( $taxonomy ) && !
empty( $terms ) ) { $query['tax_query'
][] = array
( 'taxonomy' =>
$taxonomy,
'terms' =>
array_filter( array_map( 'intval',
$terms ) ),
'include_children' => false,
);
} } } if ( isset( $block->context
['query'
]['order'
] ) &&
in_array( strtoupper( $block->context
['query'
]['order'
] ), array
( 'ASC', 'DESC'
), true
) )