• Resolved psalaun

    (@psalaun)


    Hi,

    I’m using ACF Pro with Polylang Pro on my multilingual website. The usual behavior when adding a Relationship field is that only the content available in the current post language is shown, avoiding linking an english post with a french one for instance.

    However when activating ACF Extended, all languages are displayed by default. A workaround is to select language taxonomies when configuring the ACF field, but then the editor needs to remember switching the correct language before selecting a post, which is not very convenient and prone to errors.

    Is there an option I’m missing somewhere?

    Best,

    Pierre

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    Thanks for the feedback! You’re right, there’s a problem with Ajax queries when Polylang activated with the new ACF Extended Multilang module. I tracked down the bug, and will release a hotfix soon. I just need to finish adding something else before.

    In the meantime, you can apply the fix by yourself:

    In the file /acf-extended/includes/core/multilang.php line:88.

    Remove this 4 lines of code:

    
    // Localize data
    acf_localize_data(array(
        'language' => $cl
    ));
    

    I tested it and relationship, post objects and other ajax fields now work correctly (there’s no side effect).

    Sorry for the inconvenience.

    Have a nice day!

    Regards.

    There is still an issue with Polylang and ACFE in your most recent release. I had a site that is not delivering any field values back when using the get_locale option to see the set locale on a page. When disabling ACFE the site functions correctly.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Sorry to hear that. Are you experiencing issues with ajax aswell? My answer was posted 3 hours ago, the hotfix is not out yet.

    Can please try to apply the fix following the instructions in my previous answer?

    If that doesn’t fix the issue, you can always disable the ACF Extended Multilang module by adding the following code in your theme functions.php file:

    
    add_filter('acf/settings/acfe/modules/multilang', '__return_false');
    

    If the issue isn’t related to @psalaun issue, can you please describe a bit more your problem? What do you mean by using the get_locale option? Do you mean that the function get_locale() doesn’t return anything?

    Thanks in advance and sorry for the inconvenience.

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    The new ACF Extended: 0.8.6.7 patch is up and should fix this issue. You can remove the code that disable the multilangual compatibility module ??

    Have a nice day & sorry for the inconvenience.

    Regards.

    Thread Starter psalaun

    (@psalaun)

    Thanks a lot, it works perfectly!

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Awesome! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post items not filtered by current language in Relationship when using ACF:E’ is closed to new replies.