【WordPress】WXR version error when import into wordpress

When I go to Tools->Import, and select the .XML file in question, I get the following error:

Sorry, there has been an error.
This does not appear to be a WXR file, missing/invalid WXR version number.

 

Here is an answer i found ,though it doesn't work for me ,it truely help some people ,so i paste it for you :

【If you paste the following line into your export file after the Language defining line in the section near the topyou should be good to go:
1.1

You may be able to put it elsewhere, but that's where it appeared in my new export and where it worked for me.】

 

reference :http://wordpress.org/support/topic/xml-to-wxr-issue

转载于:https://www.cnblogs.com/younglaker/archive/2013/03/11/2954039.html

你可能感兴趣的:(php)