• Resolved matjazu

    (@matjazu)


    Hello,

    i had problem with duplicating posts when Polylang was installed. Because Duplicate Posts plugin also copied post_translations values that are applied to post via polylang. I added following lines in duplicate-post-options.php to resolve problem. ( Ofcourse another SAVE of options in admin is needed 🙂 )

    Add following lines on line 151 in duplicate-post-options-page.php

    <?php if (is_plugin_active('polylang/polylang.php')): ?>
    <label style="display: block;"> <input type="checkbox" name="duplicate_post_taxonomies_blacklist[]" value="post_translations"
    <?php if(in_array('post_translations',$taxonomies_blacklist)) echo 'checked="checked"'?> />Post Translations</label>
    <?php endif; ?>

    I just wanted to share my fix for polylang problem. Maybe author can include it in next version.

    https://wordpress.org/plugins/duplicate-post/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi,
    thank you for your help.

    I must say I usually don’t like to put in code which is dependent from other plugins.
    From what I see in your snippet, post_translations seems to be a regular custom taxonomy, it would work out of the box but it’s not public.
    Since the same approach may be used by other plugins (or themes), I’ll try to find a way to solve the problem in a general way…

    Thank you so much for this Matjaz!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support for polylang’ is closed to new replies.