Home › Forums › MapPress Support › Mashup with Tax Query › Reply To: Mashup with Tax Query
November 7, 2013 at 4:26 am
#13699
Hi,
You can include your query in the map, for example:
$query = array (
'post_type' => 'location',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'area',
'field' => 'term_id',
'terms' => $parentID
))
);
$map = new Mappress_Map();
$map->query = $query;
$map->display(array('width' => 800, 'height' => 800));