Reply To: Mashup with Tax Query

Home Forums MapPress Support Mashup with Tax Query Reply To: Mashup with Tax Query

#13699
Chris
Keymaster

    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));