ACF Form with Polylang - duplicated form

Viewed 20

I am using this function to render form in frontend.

acf_form(['id' => 'onboarding',
        'post_id' => 'new_post',
        'new_post'      => array(
        'post_type'     => 'onboarding_form',
        'post_title'  => "$current_user->user_email ($current_user->last_name $current_user->first_name)",
        'post_status' => 'publish'),
        'submit_value' => __('Save and continue', 'swp'),
        'html_submit_button' => $submitBtnHtml,]);

It worked perfectly, but now I tried to translate it. And when I access the page with this form, the form is there in both languages, no matter which one is currently set. It shows me the same forms together, first one is in English and second one is the translated one.

Did I set up something wrong in Polylang or in ACF? Or is it possible to get form based on current language? Thank you

0 Answers
Related