echo do_shortcode and Mashup

New home Forums Pro Add-on echo do_shortcode and Mashup

This topic contains 3 replies, has 2 voices, and was last updated by  abamedia 5 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8513

    abamedia
    Member

    I would like to use a mashup with the do_shortcode.

    I’ve tried the following code, but it will only display whatever map is listed as my parent map.

    <?php echo do_shortcode( ‘[wpgmza id="1" mashup=true mashup_ids="1,2,3,4,5" parent_id="4"]‘ ); ?>

    #8587

    Nick Duncan
    Keymaster

    Hi
    It will display ONE map and use the settings of your parent map. However, all the markers and polygons and polylines of all the maps you listed will be displayed in that one map.

    #8651

    abamedia
    Member

    correct, but it doesn’t work correctly on my home page.
    I can get it to work on other pages, like this one:
    http://www.abaconnect.org/mashup-test/

    How can I get this same result to appear on my home page?

    Code I’m using:
    <?php echo do_shortcode( ‘[wpgmza id="1" mashup=true mashup_ids="1,2,3,4,5" parent_id="4"]‘ ); ?>
    When I try this on my home page, only the markers for map id 4 show up.

    #8663

    abamedia
    Member

    this has been fixed. Code used:

    <div id=”maps”>

    <?php $mapID = $_GET[‘map’];
    if(!isset($mapID)){$mapID=4;}
    echo do_shortcode(“[wpgmza id='4' mashup='true' mashup_ids='1,2,3,4,5' parent_id='4']“);
    ?>
    </div>

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘echo do_shortcode and Mashup’ is closed to new replies.