do_shortcode with osm
-
Hi
I’m trying to display a map in a div tag OpenStreetMap of my wordpress page from an external page, I use the code below:require('../../../wp-config.php'); $wp->init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); // do_shortcode $plug = '[osm_map lat="43.70657" long="-1.0562553" zoom="6" width="250" height="250" marker_file="https://localhost/wp/wp-content/plugins/hdimngs/resources/data/adresse.txt" type="AllOsm" map_border="medium solid blue" ]'; echo do_shortcode($plug);
The border of the map is displayed correctly but I do not have the content: icons, map drawing, knurr, ….
Remark : Yet if I put the code above (from the line ‘/ / do_shortcode’) directly into a wordpress page it works well
Do you have an idea ?
thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘do_shortcode with osm’ is closed to new replies.