Problem: I am trying to use the toolset_get_related_posts API to display some related posts, but when I echo the results I see "Array". I should see posts.
Solution: The results returned by the API will be an array of post objects. If you try to echo those directly, you will see "Array". You can loop over those objects with a foreach, or you can inspect them using print_r.
The issue here is that the user had a number field that when it is being displayed gets an extra value added to it.
Solution:
In this user's case he had a custom shortcode wrapping the types shortcode and this could've been the cause of the problem. I would recommend checking for custom code on your site that would affect the number fields.
Problem: I would like to display a Map that includes several "hotspots" as Markers, and also draw a route on the map.
Solution: You can create a custom Map View that includes Markers that represent each "hotspot". To draw a custom walking route on a Map, you can use the Google Maps Polyline API. Here's the example from the Google Maps API documentation, edited to use a map created in Toolset:
var mapid = 'map-1';
var map = WPViews.view_addon_maps.get_map(mapid);
var flightPlanCoordinates = [
{lat: 37.772, lng: -122.214},
{lat: 21.291, lng: -157.821},
{lat: -18.142, lng: 178.431},
{lat: -27.467, lng: 153.027}
];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
Replace map-1 with the ID of your map created in Views. Wrap this code in a 'js_event_wpv_addon_maps_init_map_completed' event handler so it is fired when the map is ready. I provided a more complete example implementation in another ticket: https://toolset.com/forums/topic/add-lines-connecting-markers-in-a-google-map/#post-916035
This ticket creates the polyline using on the marker locations, but your line will be unrelated to the markers.
The issue here is that the user is being told that they need a valid elegant theme subscription in order to update their toolset plugins.
Solution:
This seems to have been a conflict between toolset and elegant themes. What I recommend that you do is to perform a manual update of the plugins by going to our toolset downloads page and downloading and uploading the plugin manually.
Problem: A Wordfence security scan reported issues with the "eval" and "base64_decode" functions in a Toolset file.
Solution: You can safely disregard these messages as false positives. Our code uses these functions and our developers are aware of the security risks. Our code has XSS prevention in place to help mitigate these risks.