Skip to main content

8.6.1

🐞 Fixes

  • PHP compatibility: removed code which breaks compatibility with old PHP versions

8.6.0

🚀 Features / Improvements

  • Universal Filters: We're excited to introduce a long-awaited feature! Filters in MapSVG can now be applied to the MapSVG database, WordPress Custom Posts, or both at the same time. Previously, filters could only be used with MapSVG fields. Now, if your database includes the "Post" field, you can also filter by any post field, meta field, or taxonomy. To configure this, go to: Map editor / Filters / Edit fields / (Choose a field) / Apply filter to the field ...
  • Dynamic Markers: Previously, you could set marker images dynamically based on the value of a field in the MapSVG database. Now, you can also link marker images to WordPress Post data - including post fields, taxonomies, meta fields, and ACF fields!

8.5.41

🐞 Fixes

  • Clustering: fixed clustering which was breaking in some environments

8.5.40

🐞 Fixes

  • Shortcodes: fixed rendering for {{shortocode_inline ...}} helpers that return HTML content

8.5.39

🚀 Features / Improvements

  • Filter tags: when filters are hidden and you apply filters by JS code or by cliking a region - filter tags with a "X" (close) button are shown either on top of the directory or in the map container (whatever is available). Example: Filter Tag

🐞 Fixes

  • Filter by region: fixed filtering by multiple regions at once

8.5.38

🐞 Fixes

  • Links in SVG: Fixed inactive embedded links in SVG files
  • Minor bugfix: fixed issues with map options appeared in v8.5.37

8.5.37

🐞 Fixes

  • Link tags: fixed inactive inline <a>...</a> links in a SVG file
  • Activation: fixed activation issues for MapSVG-Lite version of the plugin.

8.5.36

🚀 Features / Improvements

  • Improved shortcode rendering in the templates. Now you can pass parameters into placeholders in a shortcode, as shown below.
{{shortcode '[something id="{{1}}"]' myVar}}

{{shortcode '[something id="{{1}}" otherParam={{2}}]' myVar anotherVar}}
  • Added nested parameters support for the shortcodes:
{{shortcode '[something id="{{post.acf.fieldName}}"]'}}

This is useful when you are iterating over an array. You can pass current array item into the shortcode using this:

{{#each myArray}}
{{shortcode_inline '[something id="{{var}}"]' this}}
{{/each}}

🐞 Fixes

  • Fixed {{shortcode_inline ...}} rendering which was triggering errors on some servers due to the incorrect Content-type being set as json. Now the content type is set as text/plain.

8.5.35

🚀 Features / Improvements

  • Posts: Added mapsvg_format_post_data filter in PHP, that allows modifying WP Post data returned to mapsvg front-end. Add your taxonomies or anything else. Example:
add_filter('mapsvg_format_post_data', 'add_custom_taxonomy_to_mapsvg', 10, 2);

function add_custom_taxonomy_to_mapsvg($post) {
// Get terms from a custom taxonomy
$terms = get_the_terms($post->ID, 'your_taxonomy_name');

if ($terms && !is_wp_error($terms)) {
// Add taxonomy terms to the post data
$post->taxonomy_terms = array_map(function($term) {
return [
'id' => $term->term_id,
'name' => $term->name,
'slug' => $term->slug
];
}, $terms);
}

return $post;
}
  • Upgrades: Improved upgrading scripts from old MapSVG versions

🐞 Fixes

  • Conflicts: fixed incompatibilities with some WP themes and plugins due to the flush_rewrite_rules() use.

8.5.34

🐞 Fixes

  • Activation: Fixed plugin activation and automatic updates which got broken after moving licenses to Paddle.com
  • UI: Changed "Upgrade to Pro" links URL to mapsvg.com/pricing (instead of linking to CodeCanyon)