Hi,
Thank you for contacting us and I'd be happy to assist.
Since there are multiple levels of nested shortcodes involved, this will require a custom shortcode.
On my test website, I was able to make this work using these steps:
1. I added this shortcode for the map in the template:
[wpv-map-render map_id="Map-1" map_width="100%" map_height="700px" cluster="off" spiderfy="off" scrollwheel="off" map_type_control="off"][/wpv-map-render]
2. To show the map markers and the map marker focus links, I registered a custom shortcode:
function custom_address_field_func($atts) {
$a = shortcode_atts( array(
'field' => '',
'map_id' => '',
'marker_id' => '',
), $atts );
$post_id = get_the_ID();
$field_values = get_post_meta($post_id, 'wpcf-'.$a['field'], false);
$output = '';
$index = 0;
foreach ($field_values as $field_value) {
$field_lat = do_shortcode('[types field="'.$a['field'].'" format="FIELD_LATITUDE" index="'.$index.'"][/types]');
$field_lon = do_shortcode('[types field="'.$a['field'].'" format="FIELD_LONGITUDE" index="'.$index.'"][/types]');
$field_value = do_shortcode('[types field="'.$a['field'].'" index="'.$index.'"][/types]');
$shortcode_string = "[wpv-map-marker map_id='".$a['map_id']."' marker_id='".$a['marker_id']."-".$index."' lat='".$field_lat."' lon='".$field_lon."' marker_title='".$field_value."']".$field_value."[/wpv-map-marker]";
$output = $output . do_shortcode($shortcode_string);
$output = $output . '<a href="#" class="js-wpv-addon-maps-focus-map js-toolset-maps-hover-map-'.$a['map_id'].'-marker-'.$a['marker_id']."-".$index.' js-toolset-maps-open-infowindow-map-'.$a['map_id'].'-marker-'.$a['marker_id']."-".$index.'" data-map="'.$a['map_id'].'" data-marker="'.$a['marker_id']."-".$index.'">'.$field_value.'</a><br>';
$index = $index + 1;
}
return $output;
}
add_shortcode( 'custom_address_field', 'custom_address_field_func' );
The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.
3. In the content template where I wanted to show the map marker focus links, I included this new custom shortcode like this:
[custom_address_field field="post-address" map_id="Map-1" marker_id="MARKER-ID"]
Note: Please replace the shortcode attribute values "post-address", "Map-1" and "MARKER-ID" as needed.
Note: The custom code examples from our forum are shared to get you started in the right direction. You're welcome to adjust them as needed and for more personalized customization assistance, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/
regards,
Waqar