Hello,
I am trying to pass a shortcode through to leaflet wp maps, two of my other shortcodes (The image one and the open image in fullscreen) are working correctly but the shortcode for the title is not.
For some reason, the title shortcode works for the image alt text but not alone in the leaflet marker pop-up.
The link for the map with the issue is: hidden link and if you click on the trail icon you will see one of the popups.
I have attached two images to better explain what is happening.
Any ideas as to why this isn't working?
Thanks,
Cam
Hello,
Please test the shortcode [types field='poi-name output='raw''][/types] directly(without leaflet shortcode), make sure it outputs correct result.
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/
Hello Luo,
Thanks for your message. It is outputting correctly as shown in the screenshot attached.
Is there possibly another way to format the shortcode that may get it to work correctly?
Thanks,
Cam
As your screenshot shows, Toolset shortcode [types field='poi-name output='raw''][/types] can output the result correctly, the problem is in "leaflet wp maps" plugin side, you need to check the author of "leaflet wp maps" for it for better, check if their plugin supports to use other shortcode inside leaflet wp maps shortcode.
The documentation says nothing directly about shortcodes inside for the text. (hidden link). However I am able to make the shortcode work on one of my other map views for the parent post of the repeatable group. See attachement. Do you know why that shortcode would work but the other one would not?
The link to the one that is working is: hidden link
Regards,
Cam
As I mentioned above, the problem is in "leaflet wp maps" plugin side:
https://toolset.com/forums/topic/shortcode-value-not-being-passed-to-my-leaflet-map-pop-up/#post-2316859
According to our support policy, we don't provide support for other plugins, you need to check it with the author of "leaflet wp maps"
And you can also consider Toolset Maps plugin, which supports Toolset shortcodes without conflicts:
https://toolset.com/course-chapter/display-directory-items-on-maps/
You can download it here:
https://toolset.com/account/downloads/