Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    Hello,

    Yes there is. We are working on a way to make it more intuitive, but in the mean time, you can use a taxonomy field to let the user choose which language the post should be.

    You can also use a duplicate post form to let the user duplicate the post in another language using a taxonomy field.

    Thread Starter robertopablo

    (@robertopablo)

    Than you! It is a solution.

    But the new post (in another language) is not connected to the original post? 🙁

    Navigating and clicking on the polylang switch language icon may not switch to the correct post in the other language, right?

    anyway i love acf frontend

    Plugin Author Shabti Kaplan

    (@shabti)

    Correct the posts are t connected. I am writing this down for implementation very soon. I’ll keep you posted.

    I’m glad you love our plugin. 😊

    Thread Starter robertopablo

    (@robertopablo)

    gracias, thanks.

    Hola Roberto,

    To create the translations button is not very difficult:

    There are 2 functions that you need to check against the $postID: pll_get_post_language and pll_get_post_translations

    With those functions, you can check which language version is available.

    To create a Polylang translate button which links to the original, you have to create a Polylang nonce. This nonce is specific to Polylang and won’t work without it.

    $nonce_url = wp_nonce_url( $url, 'new-post-translation' );

    $url = '/wp-admin/post-new.php?post_type=YOURCPT&from_post='.$postID.'&new_lang='.$language_to_translate_to;

    Hope this helps.

    • This reply was modified 3 years, 10 months ago by Massimo.
    • This reply was modified 3 years, 10 months ago by Massimo.
    • This reply was modified 3 years, 10 months ago by Massimo.

    Hi guys,

    Thank you for the great plugin and previous discussions.

    @shabti Is there any progress with adding option to connect translated posts to original?

    @xamax Did you perhaps find a way to start creating a connected translation using a front-end form and not a wp-admin URL?

    Best regards,
    Verner

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘ACF Frontend Polylang’ is closed to new replies.