Tagged: masonry wpml
- August 16, 2016 at 1:09 am #13670
We seem to be having an issue with masonry & wpml when using domain switching.
For example, we have an English & French website. Masonry works well and as expected with domain.com/gallerypage and domain.com/fr/gallerypage, showing the appropriate language content for each url.
When we switch though to: frenchdomain.com/gallerypage we are getting the English content showing. It doesn’t seem to be picking up the language change. The rest of the page (the non masonry content) is displaying correctly in French.
Is this a known issue, has it been encountered before? Is there something we can do to make it pick up the correct language settings?
SimonAugust 16, 2016 at 2:55 pm #13679
We made this work by changing this code around line 7 in wmlp_container.php:
$link = admin_url(‘admin-ajax.php?action=wmlp_load_posts&shortcodeId=”.$shortcodeId) ;
$link = “/wp-admin/admin-ajax.php?action=wmlp_load_posts&shortcodeId=”.$shortcodeId ;
Of course this will be wiped out by the next plugin update, is there a better way to handle it?
Thanks.August 16, 2016 at 4:59 pm #13680Masonry GuyKeymaster
Sorry about the issue and thank you so much for sharing the solution with us. But the main issue here is that, we need to use the admin_url function to find the admin url. We can’t manually code wp-admin. Some plugin are known to change wp-admin folder as well.
We will check this issue in details and see what we can do here.
ThanksAugust 16, 2016 at 5:29 pm #13681