My custom query parameters are:
$parentID from main Loop 1
$args2 = array (
'post_type' => 'location',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'area',
'field' => 'term_id',
'terms' => $parentID
))
);
How can i create a mashup of the resulting posts ? Each posts has a map generated via custom_fields. I have the IDs stored in an array $locationID. I’ve tried it via php and via shortcode, both only show 1 location.
It works when i do it manually:
$mymap = new Mappress_Map(array(
"width" => 800,
"height" => 800
));
$mymap->pois = array($mypoi[0], $mypoi[1]);
echo $mymap->display();
What I am trying to do is automate the second part:
$mymap->pois = array($collectedpoiarray);
or
do shortcode('[mashup query="'.$locationID.'"]');