Xml – How to import the Disqus XML Exported Comments to WordPress WXR

disquswordpressxml

I currently moving my comments system back to default WordPress comments. I was using Disqus before but I decided to move back. Disqus provides a tool that you can export all your comments but unfortunately, they will provide you with XML format. The worst thing is WordPress only reads WXR file format.

My solution to this is i should manually rewrite what Disqus gave me (I mean the XML file i exported from disqus) to WordPress WXR file format. My problem is that I don't know what is the basic structure of the WordPress comments required.

You can view the Disqus Exported XML file here!
My only concern here is i just need a template or format which I can follow on how to write a correct WXR file comments so that I can import it directly in my WordPress using the Import Tool. By the way, when I try to upload the XML file to WordPress, I get this error:

Invalid file. Please upload a valid Disqus export file."

Best Solution

The Disqus WordPress plugin includes a sync feature which will sync your comments from Disqus back to your WordPress installation. It can be located on the Advanced Options tab inside the plugin.

Related Question