• Hi!

    I’m working on a WordPress project that involves managing multilingual content and site localization. This plugin seemed to be an excellent option to do so, until I stumbled upon an obstacle.

    I need to be able to display an article written in any language while the interface is in another language ; i.e. a user browsing in the /fr/ interface should be able to display a post that has been written in Italian without being redirected to the /it/ interface as well.

    Problem is, I can’t make this use case work with Polylang: whenever I try to open the page of an article written in a specific language, the interface is always switched to this language also.

    Let’s say my Italian article has this slug: my-italian-article… I’d like to be able to access https://example.com/fr/my-italian-article and see the site in French but the content in Italian (even if there is an article which is a translation of my-italian-article).

    In other word, have a separation between the site language and the content language, and being able to change one without affecting the other.

    Is this possible with Polylang ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    What you want to achieve is not possible with Polylang. The theme is always displayed in the language of the current post. Moreover, in WordPress, each post has a unique url, called the canonical url. WordPress always redirects my-italian-article to its canonical url. So in your case, https://example.com/fr/my-italian-article would be redirected to https://example.com/it/my-italian-article. This is to avoid duplicate content.

    Thread Starter tazaf

    (@tazaf)

    Hi!

    So… the redirection I’m experiencing comes from WordPress, not Polylang.
    That’s a bummer ??

    Well… at least, it’s clear now.
    I’ll have to find another way to do what I want to achieve (hoping there is another way).

    Anyway, thanks a lot for the quickness of your response!

    Plugin Author Chouby

    (@chouby)

    You can have a look at the redirect_canonical filter but playing around with this is risky as the feature is there to avoid seo issues with duplicate content.

    I would just update to PRO and use Synchronized post feature https://polylang.pro/doc/synchronized-posts/. But I’m lazy, so it’s up to you do you want to get your hands dirty with redirect_canonical filter ??

    Thread Starter tazaf

    (@tazaf)

    That might have done the trick, indeed.
    Unfortunately, that’s a project for which our client does not want any ongoing fee ??

    I ended up developing our own (small) plugin for this very specific use case.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display same content in different languages’ is closed to new replies.