Support

Account

Home Forums Add-ons Repeater Field Polylang and update_field() a clone field in a repeater field

Unread

Polylang and update_field() a clone field in a repeater field

  • Hi,

    I have:
    Advanced Custom Fields PRO 5.9.6
    Advanced Custom Fields: Extended 0.8.8.3
    Polylang Pro 3.0.5

    I have set up 2 languages ‘de’ & ‘en’. I have one php script to populate the ACFs in the posts in both languages via update_field(). Everything works well except for the fields that are clone fields within repeater fields.

    If I run the php script from my ‘de’ homepage, all the ‘de’ posts are populated correctly, but the ‘en’ posts are missing the data for the clone fields within repeater fields.

    If I run the same php script from my ‘en’ homepage, all the ‘en’ posts are populated correctly, but the ‘de’ posts are missing the data for the clone fields within repeater fields.

    I have tried:
    acf_update_setting(‘current_language’, ‘en_GB’);
    Before populating the ‘en’ posts from the ‘de’ homepage, but it did not work.

    What can I do?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.