Home › Forums › Pro Version › Masonry & WPML and Domains
Tagged: masonry wpml
- This topic has 3 replies, 2 voices, and was last updated 4 years, 5 months ago by
seethroughweb.
- AuthorPosts
seethroughweb
ParticipantHi.
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?
Thank you
Simon
seethroughweb
ParticipantWe 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) ;
to:
$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.
Masonry Guy
KeymasterHi,
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.
Thanks
seethroughweb
ParticipantGreat, thanks!
- AuthorPosts