Skip to main content

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)

8.5.32

🐞 Fixes

  • SVG: Fixed handle click on HTML links in SVG files
  • Map Editor: Fixed duplicate map feature
  • Google Maps: Fixed mobile device behavior - properly fit markers on directory item click
  • Directory: Fixed text search field state preservation on database fetch when filters are located in directory
  • UI: Changed "Upgrade to Pro" links to mapsvg.com/pricing

8.5.31

🐞 Fixes

  • Map Editor: Fixed invisible settings tabs in the Map Editor
  • WordPress: Fixed the flush_rewrite_rules() execution issues
  • Performance: Deferred JS scripts loading

8.5.30

🐞 Fixes

  • Details View: Fixed zero header/footer size when used with details view

8.5.29

🐞 Fixes

  • List/Map buttons: Fix mobile buttons layout

8.5.7

🚀 Features / Improvements

  • *Metabox plugin support (ACF alternative). How to use it: post.metabox.field_name

🐞 Fixes

  • Filters: restore the state of filters after redraw (the bug caused filters to be reset, when filters were located in the same conainer with directory)

8.5.1

🐞 Fixes

  • Zoom: Fixed issues with zoom & centering the map on cursor pointer on zoom