Home › Forums › MapPress Support › Template tag › Reply To: Template tag
October 1, 2012 at 8:28 pm
#10519
Participant
Hello,
I have disable automatic display in MapPress settings and I have added this in my listing.php page:
<section id=”overview”>
<?php the_content(); ?>
<?php $maps = Mappress_Map::get_post_map_list($post->ID);
if (!empty($maps)) {
$mapid = $maps[0]->mapid;
do_shortcode(‘[mappress mapid="$mapid"]‘);
} ?>
</section>
Unfortunately no map is displayed
Any idea?