The "bind template" function is no longer visible. You need to assign a specific template to all posts in a post type in bulk.
Solution:
- Go to WordPress Dashboard > Toolset > Content Templates.
- Select the desired template to open its edit screen.
- In the right-hand sidebar, locate the USAGE section.
- Use this section to assign the template to the entire post type.
I want to connect Google Map markers in a sequential line (A → B → C) without closing the loop back to the starting point (A).
Solution:
The issue arises when the last coordinate duplicates the first one, which closes the loop. The updated JavaScript provided ensures that if the first and last coordinates are identical, the last coordinate is removed to prevent the path from closing.
Here’s the corrected code snippet:
jQuery(document).ready(function($){
function initMap() {
var mapid = 'map-2';
var map = WPViews.view_addon_maps.get_map(mapid);
var markers = WPViews.view_addon_maps.markers[mapid];
if (markers.length === 0) return;
var tripCoordinates = [];
var latLng;
// Loop over all the markers and create an array of lat/lng objects
for (var marker in markers) {
if (markers.hasOwnProperty(marker)) {
latLng = {
'lat': markers[marker].position.lat(),
'lng': markers[marker].position.lng()
};
tripCoordinates.push(latLng);
}
}
// Remove the last coordinate if it duplicates the first coordinate
if (tripCoordinates.length > 1) {
var firstCoord = tripCoordinates[0];
var lastCoord = tripCoordinates[tripCoordinates.length - 1];
if (firstCoord.lat === lastCoord.lat && firstCoord.lng === lastCoord
You are unable to set the custom post type archive in Astra Pro to full width (1200 px) and cannot remove the restricted space for a sidebar.
Solution:
Use Astra's layout settings in the Toolset content template sidebar to adjust the layout.
- Open the Content Template for your custom post type archive in Toolset.
- In the right sidebar, look for Astra-specific layout options.
- Select the layout that allows full-width content and disables the sidebar.
- Save and check the changes on the frontend.