• Resolved David Vongries

    (@davidvongries)


    Hey guys,

    i run Polylang with ACF PRO and ran into the following issue:

    i have a custom post type (problem also appears on pages & posts) where i display a few ACF custom fields. They appear in my main language, but after i create that post in another language, the custom fields don’t show up.

    Custom fields sync is off. I know thit was working before but i don’t know if the latest ACF or Polylang update caused the issue.

    Best,
    David

    https://www.ads-software.com/plugins/polylang/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I run into the exactly same behaviour.

    I can not see the form with custom fields defined by ACF in any new language. The only way is to “translate” current definition of Field Group into all used language = enter the idential definition and set up the new diferent language.

    Is there any possibility to set the Field Group to be valid for all languages or switch off operation of Polylang over ACF Field Groups?

    Thanks, Jan

    Thread Starter David Vongries

    (@davidvongries)

    Hey @jan.holpuch,

    this seems to be a Polylang issue, i spoke to the ACF support, this is what they replied:

    “This is quite odd as the new version does not alter anything on how the custom fields are saved.”

    It seems to be an issue with the latest Polylang update.

    Best,
    David

    Plugin Support Chrystl

    (@chrystl)

    Great! Thank you very much, it works ??

    Plugin Author Chouby

    (@chouby)

    Hi!

    I agree with the ACF Support. There is nothing neither in ACF Pro nor in Polylang to activate the translation of fields groups.

    I made this test on a fresh WP 4.5.3 install.
    * Activate ACF Pro 5.3.10 + Polylang 2.0.2
    * Add two languages.
    * Add one field group with on text field
    * Create an English post: The field group is visible
    * Create a French post: The field group is visible too.

    There is definitely an interference that several users experienced, probably coming from a theme or a third plugin but it doesn’t come from ACF Pro or Polylang.

    Unfortunately, once the translation of fields groups is activated, you can’t find what theme or plugin activated the option by deactivating all plugins and the theme as Polylang stores the option in database.

    My scenario was different. I had run WP + ACF in one language (set up plenty of Field Groups) and after that I installed Polylang.

    I think the problem could be after installation when the plugin automatically set up the default language for all posts (= including ACF definitions ??).

    I have no time to test it now, on the other hand, this code in functions.php in my case really works:

    add_filter('pll_get_post_types', 'unset_cpt_pll', 10, 2);
    function unset_cpt_pll( $post_types, $is_settings ) {
      unset($post_types['acf-field-group']);
      return $post_types;
    }
    Thread Starter David Vongries

    (@davidvongries)

    I’ll do some further testing later. It’s funny because it was all working before… The fields just don’t show up in other languages any more. Never had that before and i didn’t make any changes.

    Chouby, in my case it’s not really about translating field groups, it’s only that fields stopped showing up if i create a post in another language. (if this is what you meant, sorry for the confusion) ??

    Thread Starter David Vongries

    (@davidvongries)

    PS: thanks @chrysti,

    that did the trick! ??

    Best,
    David

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Polylang stopped working with ACF (PRO)’ is closed to new replies.