Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

Adding markers directly using shortcode?

$
0
0

Replies: 1

The shortcode API reference provides enough information for me to add a map to a page with a single marker included, like this:

[mapsmarker lat=”43.26010702″ lon=”-71.03199977″ mapwidth=”100″ mapwidthunit=”%”]

But if I add a second shortcode to the same page, with different values for lat and lon, it displays as a second map. Is there a way to add multiple markers to a single map, using shortcodes? I ask because I want to generate a map from an array of location data in php, and manipulating the shortcodes seems like it’d be the easiest way to do it


Viewing all articles
Browse latest Browse all 82367

Trending Articles