Migrate images on block editor

Closed

Import WP Pro Updated 2 years ago 2 Replies

Nick asked 2 years ago on June 28, 2023 at 4:48 pm

Hi.

I am trying to import posts that have been written with block editor (gutenberg) but the images are not migrated. The url stays on old website’s url. Featured image is working fine.

Any solution on this?

Thanks,
Nick

J

James replied Support Agent

2 years ago on June 28, 2023 at 7:10 pm

Can you install and activate the attached plugin and add the following constant to your wp-config.php file (setting it to the url of the old website)

define('IWP_IM_BASE_URL', 'https://old.site/');
NP

Nick replied

2 years ago on June 29, 2023 at 8:28 am

Hi James,

Thank your for the update.

It worked, it imported all the media files but on the media gallery images look with no preview images.

Fixed that by regenerating images with wp cli.

Thanks for your support,
Nick