Reply To: version 1.7. not working for me | WP Masonry Layout

Reply To: version 1.7. not working for me

Reply To: version 1.7. not working for me

Home Forums Lite Version version 1.7. not working for me Reply To: version 1.7. not working for me

#13371 Reply

Martina Bartik

OK now there’s something I found out:
there’s a problem with polylang.
it can be solved if you change the line nr. 6 in file /wp-content/plugins/wp-masonry-layout/includes/client/wml_container.php to fit polylang language settings as noted below:


...
<?php
// @BAM 2016-07-31
// orig. incorrect, commented out: 
// $link = admin_url('admin-ajax.php?action=wml_load_posts&shortcodeId='.$shortcodeId);
//
// corrected to fit polylang language settings:
$currentWebsiteLanguage = pll_current_language();
$link = admin_url('admin-ajax.php?lang='.$currentWebsiteLanguage.'&action=wml_load_posts&shortcodeId='.$shortcodeId);
// @BAM end correction
$containerDivId	= 'wmle_container';
?>

if this is done, all seems to work well with polylang – could you please integrate this rather quickly in a bugfix version?
Thank you!

Martina