Reply To: Template tag

Home Forums MapPress Support Template tag Reply To: Template tag

#10519
manunc
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?