Reply To: Template tag

Home Forums MapPress Support Template tag Reply To: Template tag

#10521
manunc
Participant

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?