• Resolved JLBA

    (@jltest)


    Hi everyone,

    i don’t find documentation on how pods works with polylang in relationship fields.

    For example, I got 2 pods:
    – Hotels (a CPT pod)
    – Areas (a taxonomy pod).

    In Hotels, I got a relationship field to select the area (Paris, South of France) in a select menu from Areas pod

    Polylang is activated for both pods. So I could create each area in each language. But Paris is called Paris in each language. So in the BE, I see 3 Paris in the list but don’t know which is the right one.

    1. Is it possible to display the language or the slug with the field in the select menu ?
    2. Or is it possible to display only the default language value (EN) in BE but the corresponding translation in the FE ?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @jltest

    When both pods are enabled in Polylang for translations it should filter the relationship results by it’s language.

    So if a hotel is in BE language it should only display areas in the same language.

    In case you are editing an object that doesn’t have a language you can use the language switcher at the top toolbar.

    I just verified this behavior in another installation of mind which has both Pods and Polylang running on the latest version.

    Could you verify and make sure this issue occurs even if you have only Pods and Polylang activated?

    Cheers, Jory

    Thread Starter JLBA

    (@jltest)

    Hi Jory.

    That’s it. Area is the first field in the BE form so i tried to select it before saving in draft…

    Thanks for your answer.

    Thread Starter JLBA

    (@jltest)

    Other question. 2 of the languages are 2 versions of Chinese with their specific alphabet. Editors will work in english in BE. So how can i display area in english in the BE but in the right language and alphabet in FE ?

    Plugin Support Paul Clark

    (@pdclark)

    The WordPress backend interface usually displays based on the user preference for language, which is set per-user on /wp-admin/profile.php under Personal Options > Language (the last option in the first section).

    Frontend language display is usually separate from the admin, as users may not be logged in or may not have the same user settings as site administrators.

    Some frontend approached provided by Polylang include:

    Also see https://polylang.pro/doc/function-reference/ for functions for getting the current language, default language, or various translations.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.