Jump to content


This topic is now archived and is closed to further replies.


WPML with path error

Recommended Posts


I am using pageline (v2.2.1.1) and WPML (3.3.3). WP 4.3.1

Here is the problem: when I set the language to be a path like this:


all [pl_site_url] will become above, which means, if you are using images in textbox, or pageheader, the full URL would become


which is wrong.

Furthermore, if the site requires AJAX, the calling URL becomes:


which is also wrong.

Now you may want me to use ?lang=zh-hant instead of using /zh-hant/, but it would become


which is also wrong.

Can you please tell me how to fix it?

Thank you very much in advance for your help.

Share this post

Link to post
Share on other sites

There is nothing to fix in my opinion. If you want to use WPML without that issue, do not use the site_url shortcode, replace it with http://www.your-site.com/.


Please search our forums, before posting!

Share this post

Link to post
Share on other sites

Thanks Danny.

Since this [pl_site_url] is bind to every DMS input box (like slider, media box), it is not very convenient to change that.

And in fact, I really don't think Pageline and WPML go well.

Share this post

Link to post
Share on other sites

  • Similar Content

    • JP
      By JP+
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
    • mrhinsh
      By mrhinsh+
      I am trying to get WPML working on my Pagelines instance. I am interested in getting help from anyone that has tried, especially @claudedagenais who seams to have it working.
      My issues are:
      How to translate header and footer How to get the menu to show all nav even if not translated How to get non-translated posts /pages to show up when only in default language - true for Masonry, Newsfront, and other list showing items... I have zero skills in PHP and its my site for my company. 
      note: Multi-lingual is a business decision and is required. I have vetted all of the multi-lingual options and the only one fit for purpose is WPML. 
    • JP
      By JP+
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • claudedagenais
      By claudedagenais+
      Hello, we have this strange new problem with DMS2 when used with WPML. We can save our change to the section only in the main language. When trying to edit DMS sections in the other languages DMS won't let us save. The work around is to change the main language in WPML to the language you want to change and switch back afterward to the language you really want to be the main one.
      This is a new problem that did not exist before a few days ago. We are unsure if it is linked to the Wordpress 4.4 update, the WPML 3.3.3 Update or the DMS update (!) that we did recently. We tried unsuccessfully deactivating everything (except WPML of course) including our child theme in a test environment. We can't turn off the DMS editor either from the other language pages. Some of the websites we are having this problem with are  http://www.artssutton.com/ , http://journalletour.com/, ...
    • Jackey
      By Jackey
      @Andrew @Simon 
      After some extensive web building with WPML I experienced that I needed to do numerous workarounds to prevent my page data to get lost, and really could not dot the i's. I would therefore like to request PageLines to build a WPML plugin for PL5 that will enable all text fields in the PL5 editor to be handled with the string translator in WPML.
      I think that would give PL5 an edge on the international playing field.