[ad_1]
I’m migrating some content. Copied gutenberg content on one website and pasted on another. But images are pointing to old website. Is there a way to import them after content pasted?
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
This isn’t strictly limited to Gutenberg or even WordPress in general. Pasting content from one site into another only grabs the raw HTML from the selection itself, not any of the underlying content.
The workaround is a little tedious but relatively easy
* Download the image or other attachment from the first website
* Upload the attachment to your media library
* Update the links in the content you created to point to your fresh medial-library version.
There used to be an extremely useful “emergency” import plugin you could use for this. It’s still in the WordPress plugin directory but it hasn’t been updated for seven years (!!!). But until recently it did exactly what it said on the wrapper — it would import attachments (images, PDFs, etc.) and update the links. It even had an option to bulk import hundreds of images from multiple posts or pages, which was useful when you were importing partial content (just posts for instance) from another WordPress blog. There’s a ~20-year-old about the “import content” checkbox not working for partial imports so this was a really useful plugin when you really needed it.
It’s useful enough that I just tried it again on a fresh install. It doesn’t blow up, but unfortunately it also doesn’t actually do the import either. It even sort of kind of works when you
Here’s the link to the plugin in the WordPress repository.
https://wordpress.org/plugin/import-external-attachments/
There are a couple of comments offering updates but I think the OP dev is long gone. That people are hacking their own versions suggests it could be relatively simple for someone else to update on their own, or possibly even re-submit it the way the Imagify devs re-purposed the useful abandoned Bulk-Import plugin.