最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

migration - how to convert a wp multisite into a single site with content from subsites

programmeradmin0浏览0评论

trying to convert an old wp multisite (v3.8) into a single site with data from active sites, since multisite setup is huge (containing about 50k subsites of which we only need about 2.5k) I can't just dump and import the data and then delete the data we don't need.

I've tried exporting the relevant data with wp-cli and then importing it to the new site, which resulted in 2 major problems:

  1. partial data for some users (a user may have created 80 posts but only 10 are imported).
  2. a mix-up with the attachments (import didn't change the attachment guid and the wrong pictures are displayed).

when importing the wxr file from wp-cli export all posts are imported correctly, but considering the number of files to be imported (over 5k wxr files) manual import through the wordpress admin panel isn't really an option.

any ideas or pointers?

发布评论

评论列表(0)

  1. 暂无评论