Skip to main content

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)

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