add_action('pre_get_posts', 'use_ip', 20);
is_archive() || is_category() || is_tax()
$taxquery = array(
array(
'taxonomy' => 'location',
'field' => 'term_id',
'terms' => $tax->term_id,
'operator' => 'IN'
)
);
$query->set('tax_query', $taxquery);