Home > Article > Backend Development > Code to import blog garden (cnblogs.com) data into wordpress_PHP tutorial
I will share this. If anyone needs it in the future, you can directly download the following plug-in
How to use:
Select the backup data in cnblogs and export it An XML to the local;
Download the plug-in in the attachment and install it to the wp-contentplugins directory;
After opening the plug-in in the background, you can find "Cnblogs Data Conversion" in "Tools" and enter;
Select what you just downloaded XML file, after uploading, the system will automatically convert and import the data into wordpress
Note:
This plug-in simply imports blog logs, essays, and articles into wordpress, and will not import the comment album. Data, because cnblogs does not provide this type of data backup
The import can be used unlimited times or repeated imports. Please select the XML file to import according to the situation
/**
* Plugin Name: Convert Blog Garden (cnblogs.com) data
* Plugin URI: http://levi.cg.am
* Description: Convert Blog Garden (cnblogs.com) data to wordpress中
* Author: Levi
* Version: 1.0
* Author URI: http://levi.cg.am
*/
Download Address: http://www.jb51.net/codes/70028.html