Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    You can’t use multiple wpsl shortcodes on a single page, but you can use the wpsl_map ( this doesn’t have a search option ) shortcode more then once and then set the category attribute to only show locations from category a, or b or so.

    So you can do this [wpsl_map category=”a”] [wpsl_map category=”b”] [wpsl_map category=”c”] to create three different maps.

    Thread Starter ekta91

    (@ekta91)

    I dont have any category I want to distinguish provider on the basis of there location.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You can only do that at the moment by either assigning the locations to categories and then do this [wpsl_map category=”location_category”], or set a list of location ids like [wpsl_map id=”1,3,4,5,6″] etc.

    Thread Starter ekta91

    (@ekta91)

    Okay Thank you.

    Thread Starter ekta91

    (@ekta91)

    I have did like:

    $metas = $wpdb->get_results($wpdb->prepare(“SELECT post_id FROM $wpdb->postmeta where meta_value='”.$_REQUEST[‘area’].”‘ and meta_key = ‘wpsl_state'”));
    foreach($metas as $meta)
    {

    ?>
    <div class=”map”>
    <?php
    echo do_shortcode(‘[wpsl_address id=”‘.$meta->post_id.'” name=”true” address=”true” address2=”false”
    city=”true” state=”false” zip=”true” country=”true” phone=”true”
    fax=”false” email=”true” url=”true”]’);
    //echo do_shortcode(‘[wpsl template=”default” start_location=”‘.$_REQUEST[‘area’].'”]’);
    echo do_shortcode(‘[wpsl_map id=”‘.$meta->post_id.'” width=”86%” height=”250″ zoom=”5″ map_type=”roadmap”
    map_type_control=”true” map_style=”default” street_view=”false”
    scrollwheel=”true” control_position=”left”]’);
    ?></div>
    <?php
    }

    Thread Starter ekta91

    (@ekta91)

    One more Thing description is not showing how can i show it.?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I show multiple maps according to provider’ is closed to new replies.