Hi there,
please note that I am a Toolset and WPML contractor and I have performed an in-depth debug before posting this report.
I also had contacts with your developer Konstantinos K. regarding this issue, and he suggested to open this thread.
I am trying to: populate the popup text of a map built with Toolset maps, with a value coming from a custom field set up with Types.
Link to a page where the issue can be seen: please see the attached screenshot
I expected to see: the custom field value
Instead, I got: the shortcode unprocessed (see screenshot).
After my debug session I have found that the problem is triggered dependently on the nesting of the shortcodes.
Please note I made the following tests on a Vanilla WP install with a default theme and only Types, Views and Toolset Maps plugins installed.
The following code (inserted in a content template) triggers the bug:
[wpv-map-render map_id="map-3"][wpv-map-marker map_id='map-3' marker_id='marker-2' marker_field='wpcf-location-address'][types field='location-popup-text'][/types][/wpv-map-marker][/wpv-map-render]
While the following works just fine:
[wpv-map-render map_id="map-3"][/wpv-map-render]
[wpv-map-marker map_id='map-3' marker_id='marker-2' marker_field='wpcf-location-address'][types field='location-popup-text'][/types][/wpv-map-marker]
As you can see, when the [wpv-map-marker] shortcode is nested inside the [wpv-map-render] the problem occurs, when it's outside everything works fine.
In your documentation at page https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/ the following example is present:
[wpv-map-render map_id="map-6"]
[wpv-map-marker map_id="map-6" marker_id="marker-6" marker_field="wpcf-property-address"][/wpv-map-marker]
As you can see, it doesn't have the closing [/wpv-map-render] tag, but when you insert the tag using the relevant button, the closing tag is automatically added so I believe the example is not up to date.
That said, I would have expected that also the first (nested) version of the code should be working. By the way, I was also able to fix it by adding a call to do_shortcode inside the function that renders the shortcode [wpv-map-marker] (method Toolset_Addon_Maps_Views::marker_shortcode).