Basic Google Maps Placemarks & WPML
-
Hi,
This is David from the WPML compatibility team.
When your plugin is used together with WPML we can translate placemarks.
But there is a problem, because all placemarks in all languages are listed together, no matter what the selected language is.The solution is easy, we need to pass the
suppress_filters=false
argument to the placemarks query. These lines do the job for anyone who runs into this:add_filter( 'bgmp_get-map-placemarks-query', 'bgmp_adjust_placemarks_query' ); function bgmp_adjust_placemarks_query( $q ) { $q['suppress_filters'] = false; return $q; }
Would you include this in a future release to provide a smoother experience with WPML?
This problem was reported in our support forum:
https://wpml.org/forums/topic/bgmp-placemark-translations-not-showing-on-front-end-after-updates/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Basic Google Maps Placemarks & WPML’ is closed to new replies.