• Resolved storm6969

    (@storm6969)


    Hello i want to edit default location template and add a map zoom on this location

    like

    <?php echo do_shortcode('[open-user-map ids="1159" lat="51.50665732176545" long="-0.12752251529432854" zoom="13"]'); ?>
    

    but how i can do it with variable please?

    thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter storm6969

    (@storm6969)

    ok got it

    <?php $var_id = get_the_id(); ?>
    <?php $lat_id = oum_get_location_value("lat", $var_id); ?>
    <?php $lng_id = oum_get_location_value("lng", $var_id); ?>
    <?php echo do_shortcode('[open-user-map ids='.$var_id.' lat='.$lat_id.' long='.$lng_id.' zoom="15"]'); ?>
    Plugin Author 100plugins

    (@100plugins)

    I guess you already know, that you could also use this Shortcode as well:

    [open-user-map-location value="map"]

    It shows just the single location. However – you can not adjust the zoom level manually.

    Best Regards,
    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with shortcode php’ is closed to new replies.