Migrate your blog from WordPress to [Hexo], moved images wich posts has used, and will generated a json map using for send 301 redirect from wordpress posts to hexo posts.
$ npm install hexo-migrator-wordpressimg --save
Export your WordPress in "Tools" → "Export" → "WordPress" in your dashboard.
Execute the following command after installed. source
is the file path or URL of WordPress export file.
$ hexo migrate wordpressimg <source>
If your posts in wordpress included some images, It will download those images to ${hexo_site}/source/imgs/
, and update images url in the new posts.
After 'hexo migrate wordpressimg