Home › Forums › MapPress Support › Template tag › Reply To: Template tag
October 1, 2012 at 10:15 pm
#10521
I have almost finished the integration but I have a little issue:
I used the following code to display the map:
$coord = appthemes_get_coordinates( $post->ID );
$mymap = new Mappress_Map( array(
“width” => 750,
“center”=> array(“lat” => $coord->lat, “lng” => $coord->lng),”zoom” => 19 )
);
echo $pro;
$mypoi_1 = new Mappress_Poi(array(
“title” => $pro,
“body” => $pro,
“point” => array(“lat” => $coord->lat, “lng” => $coord->lng)
));
$mymap->pois = array($mypoi_1);
echo $mymap->display();
But $pro that is retrieved with:
<?php $pro = the_title(); ?>
Does not show the title in the map,
Any idea?