• Resolved Djehuti

    (@djehuti)


    Hi,

    Thank you for what seems to be a very cool plugin.

    I am running into an issue though.
    I’m trying to create a map with a rather large amount of markers. The lat/lng are fields in a cpt created with the plugin ‘pods’, and are called after using a pods shortcode by using {@fieldname}. After calling the pods shortcode, it should cycle through the different cpt’s and echo all mentioned fields. This seems to work really well, but it gives me a map with around 90+ markers, but there are supposed to be 162 markers.

    Currently my shortcode looks like this:

    [leaflet-map zoomcontrol lat=51.81120171227107 lng=4.678341150283814 zoom=16]
    [pods name="boomtegel" orderby="tegelnummer ASC" limit= "-1" cache_mode="cache" expires="7200"]
    [leaflet-marker iconUrl="http://...marker.png" lat={@geo_latitude} lng={@geo_longitude}]<img src="{@thumbnail._src.medium}" style=" width:100%;"><br /><a href="{@permalink}">{@post_title}</a><br /><b>{@soortnaam} {@cultivar}</b><br /><i>{@nederlandse_naam}</i>[/leaflet-marker][/pods]

    Any idea what could be causing this and how to solve it?
    The list is displayed correctly when not nested in your shortcode btw

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author bozdoz

    (@bozdoz)

    could you send me the link to the page? I have no idea why pods wouldn’t show all 162 markers.

    Thread Starter Djehuti

    (@djehuti)

    Thanks for your quick response.

    You can view the page here: http://parkmerwestein.nl/?page_id=6210&preview=1&_ppp=9b077bb9f9

    Plugin Author bozdoz

    (@bozdoz)

    Looks like a bug related to your single quotes. I can push a fix for this asap.

    Thread Starter Djehuti

    (@djehuti)

    That would be awesome… !

    Not sure which single quotes you are referring to though… 🙂

    Do you think I can apply a workaround until the next version?

    Plugin Author bozdoz

    (@bozdoz)

    add this to line 326 of class.leaflet-map.php:

    $message = addslashes($message);

    just before:

    $message = htmlspecialchars($message);

    Thread Starter Djehuti

    (@djehuti)

    Thanks a million, will test asap and let you know

    Thread Starter Djehuti

    (@djehuti)

    Worked like a charm!

    I also now realized what you meant with single quotes… The ones missing were the ones that had a value in {@cultivar}, which value started and ended with ‘

    I reckon this will be added to the next update?

    Anyways, thanks again for you fast response, fast analysis and code update.
    Very much appreciated!

    • This reply was modified 7 years, 5 months ago by Djehuti.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @djehuti Unless you are reporting spam or abuse (on yourself?) please do not report topics.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Some markers are missing’ is closed to new replies.