Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 12 replies, has 5 voices.

Last updated by Irina 7 years, 12 months ago.

Assigned support staff: Harshad.

Author Posts
December 8, 2012 at 12:47 am #89110


Hi WPML staff

I am using WPML for my website in French and English. I was wondering if there was a way to merge the comments of the posts in both languages, so they all appear under each post whatever the language is.

There seem to have been a plugin for that but it's not maintained anymore

Is that possible ?

Thanks a lot!!

December 8, 2012 at 7:28 am #89116


Dear Emmanuel,

Yes the WPML comment merging plugin needs some changes to be done in order to work.

I have edited the file, now all the comments of the posts in both languages, appear under each post whatever the language is.

I have sent you email, with updated file attached.

1) Upload wpml-comment-merging.php to the /wp-content/plugins/ directory
2) Activate the plugin through the 'Plugins' menu in WordPress

Let me know how it goes.

December 8, 2012 at 4:49 pm #89179



Thanks so much for the code and the help, really glad you're here.

I have installed it and it seems to activate without any issue, however I was wondering, is the plugin working only with NEW comments or also with comments from the past?

I have made a test: publish a comment on French post, but it doesn't appear on English page. Is it a cron job and the comment will appear later?

Thanks so much

December 8, 2012 at 5:12 pm #89181


Dear Emmanuel,

All approved comments should show in Ascending order.

Can you change following code

$othercomments = get_comments( array('post_id' => $otherID, 'status' => 'approve', 'order' => 'ASC') );


$othercomments = get_comments( array('post_id' => $otherID, 'status' => 'approve', 'order' => 'DESC') );
December 8, 2012 at 6:00 pm #89190


Hi Harshad

Thanks for your quick reply. I've changed the code, but still no luck. Look for example

hidden link

and compare it with the english version

thanks a lot

December 8, 2012 at 6:16 pm #89194


Dear Emmanuel,

I have posted a comment on English version hidden link

The comment is is awaiting moderation.

Can you please approve the comment, Also if you have any cache plugins, Can you please clear the cache?

December 8, 2012 at 7:55 pm #89201


Nice comment 🙂

I've cleared the cache and approved your comment. As you can see it says "3 comments" but in French your comment doesn't appear...

December 9, 2012 at 7:11 am #89214


Dear Emmanuel,

I have tested the same modified script, at my local install and it works as expected.

Can you please send me your ftp and wp-admin details to my email address?

Please include this forum link for reference.

December 10, 2012 at 2:35 pm #89458


Dear Emmanuel,

Thanks for providing the details, you didn't upload the modified file I sent you via email?

I have now updated the comments merging script and now all comments are displayed on English and French Post
hidden link
hidden link

December 10, 2012 at 3:22 pm #89486


Hi Harshad

Thanks a lot for your help as usual. I had indeed uploaded the file, not sure what went wrong.

Anyway it works perfect now... Thanks!!!!!

April 29, 2013 at 8:07 am #123288


Hi Harshad.
I have the same need as Emmanuel, could you send me the same file?
and is that a modification to the existing comment-merging plugin?

I thank you very much in advance for your help!

August 14, 2013 at 4:22 pm #154836


Could you send me the same modified file?
Thank you very much!

November 19, 2020 at 9:09 pm #7488127


Hello! I need the same modified file, please!