admin管理员组文章数量:1391968
I have been looking at moving page content created in Gutenberg from one website to another.
I can use the “Copy All Content” option in the Gutenberg top right menu and if I paste this into a page on my new website all the blocks appear and seems fine.
However if I view the code behind the blocks I find that the blocks reference the IDs of the media set on the old website.
The media does not exist on the new website – what repercussions does having an incorrect media ID have here? Is there anyway other than manually downloading and reuploading the images to have these linked correctly?
If I use the WordPress export/import tool I get the same result.
I have been looking at moving page content created in Gutenberg from one website to another.
I can use the “Copy All Content” option in the Gutenberg top right menu and if I paste this into a page on my new website all the blocks appear and seems fine.
However if I view the code behind the blocks I find that the blocks reference the IDs of the media set on the old website.
The media does not exist on the new website – what repercussions does having an incorrect media ID have here? Is there anyway other than manually downloading and reuploading the images to have these linked correctly?
If I use the WordPress export/import tool I get the same result.
Share Improve this question asked Jan 31, 2020 at 15:33 SteveoSteveo 296 bronze badges1 Answer
Reset to default 0The obvious result of an incorrect media ID is that it cannot find the image (because it's not in the media set).
One way to work around this, is to set up your images on the old site as url's instead of media items. I'm sure this is not the only and definitely not the best solution. However, it works for me. (Select "Insert from URL" instead of "Media Gallery". The url's for each image are shown in the "Copy Link" field when you select the image in the media gallery). However, this means that the image have to remain available on the old website.
本文标签: postsMoving Gutenberg content from one website to another (block media ids wrong)
版权声明:本文标题:posts - Moving Gutenberg content from one website to another (block media ids wrong?) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744742664a2622700.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论