• Resolved juusui

    (@juusui)


    Howdy,

    I’m using both Duplicate Post and WPML on a website. I notice that if I clone a translated page in one language, all other languages get cloned, too.

    For example, let’s say I have a page in English that’s been translated to German and Japanese…

    Page A
    Page A (DE)
    Page A (JA)

    If I clone Page A, I now get…

    Page A
    Page A copy
    Page A (DE)
    Page A copy (DE)
    Page A (JA)
    Page A copy (JA)

    Is there a way to prevent Duplicate Post from automatically duplicating translated pages?

    Thank you

    • This topic was modified 2 years, 8 months ago by juusui.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @juusui

    Could you check if you are using the latest version of Yoast Duplicate Post 4.5 and WPML?

    We do know that there are some open issues (here and here) on GitHub regarding this between WPML and Duplicate Post, but I’ll try to see if there’s a recent development on this or any update.

    Thread Starter juusui

    (@juusui)

    @mikes41720 Thanks for the response. I do have the most recent versions of both plugins.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    Currently, there’s no setting to disable the WPML integration. Our developers mentioned that you’ll have to use custom code such as:

    add_action( 'admin_init', 'disable_duplicate_post_wpml', 11 );
    
    function disable_duplicate_post_wpml() {
    	remove_action( 'dp_duplicate_page', 'duplicate_post_wpml_copy_translations', 10 );
    	remove_action( 'dp_duplicate_post', 'duplicate_post_wpml_copy_translations', 10 );
    	remove_action( 'shutdown', 'duplicate_wpml_string_packages', 11 );
    }

    Please make sure you test this first on a staging site and have the appropriate backups. Please also subscribe to the relevant GitHub issues for any updates. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clone in one language but not another (WPML)’ is closed to new replies.