Using Leaflet on custom page
-
Hello everybody,
I’m using wordpress to create a database research tool, with a relational database for naval deployment records.I’m using Custom pages- where everything put onto the page is in HTML-but it’s created when the page is loaded/echoed so it’s not actually in the “text box” of the page itself.
as a result, when I put in the shortcode- it just shows up as
`
[leaflet-map]
`
I was wondering if it’s possible to use the plugin and shortcodes in this manner- obviously what I’m doing doesn’t work- but I’m not sure how to make it work? I don’t want to create one *standard* that shows up every time- basically when the page loads, it grabs a series of locations/lat/long coordinates from the database (and labels), and I run that through a foreach loop and spit out the [leaflet-marker (etc) things.So at the moment, they just show up as text in the html.
also, do I need to put a [/leaflet-map] tag to end the list?
I very much appreciate your help
- The topic ‘Using Leaflet on custom page’ is closed to new replies.