• Resolved mongulu

    (@mongulu)


    I trying to merge the comments from different language on a post to be shown on the same page.

    I’ve looked at this thread
    about Multilang comment
    and did all three steps suggested in it.

    After installing WPML Comment Merging plugin.

    The number of comments counter are merge. E.g if I have 1 comment in english and 1 in chinese… it will say the post have 2 comments.

    However the post itself does not show up.

    According to the author, if I type this

    function polylang_remove_comments_filter() {
        global $wp_filter;
        global $polylang;
        remove_filter('comments_clauses', array(&$polylang, 'comments_clauses'));
    }
    add_action('wp','polylang_remove_comments_filter');

    into functions.php I should be able to show the comments, however nothing happens.

    Just wondering whether it is an issue due to the version of wordpress 3.9.1 when compare to the author’s 3.5.1

    I have even tried it on a brand new install site with the Twenty-thirteen theme but still no luck.

    Can anyone help me?

    https://ww.wp.xz.cn/plugins/polylang/

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

    (@chouby)

    Hi!

    That’s rather the big changes that I made in Polylang 1.2 which make this not work anymore.

    Try:

    function polylang_remove_comments_filter() {
        global $polylang;
        remove_filter('comments_clauses', array(&$polylang->filters, 'comments_clauses'));
    }
    add_action('wp','polylang_remove_comments_filter');
    Thread Starter mongulu

    (@mongulu)

    it worked!!! THANKS EVER SO MUCH!!!!

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

The topic ‘Merging comments from different languages’ is closed to new replies.