Support » Plugin: Basic Google Maps Placemarks » 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)
  • Hi David (and Ian):
    The above ticket link to WPML is in fact ours and I’d just like to add that the above code snippet did not work for us; all it did was remove the placemarks from the front end map entirely so we’re still searching for a resolution.
    Thanks,
    Fiona

    Hi Fiona

    What I understand is that you have 2 problems.
    The first was indeed resolved with the above change.
    The second one we are still investigating.

    Please correct me if I’m wrong.

    David

    Hi David,
    You’re absolutely correct – working with your team we got the first part working after my response above. We’re still working on the placemark list translations but we’re getting there!

    Thanks,
    Fiona

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Basic Google Maps Placemarks & WPML’ is closed to new replies.