Topic: Masonry & WPML and Domains | WP Masonry Layout

Masonry & WPML and Domains

Home Forums Pro Version Masonry & WPML and Domains

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  seethroughweb 9 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13670 Reply

    seethroughweb
    Participant

    Hi.

    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

    #13679 Reply

    seethroughweb
    Participant

    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) ;

    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.

    #13680 Reply

    Masonry Guy
    Keymaster

    Hi,

    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

    #13681 Reply

    seethroughweb
    Participant

    Great, thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Masonry & WPML and Domains
Your information: