How Do I Fix Image Links After Migration in WordPress?

Image links in WordPress posts and pages are automatically generated by the WordPress media library. However, if your site migrated from a different platform or migrated to WordPress with custom image links, those links may not work in WordPress.

To fix image links after migration, you’ll need to follow these steps:

1. Open your WordPress site in a browser.

2. In the WordPress media library, click Posts > All Posts.

3. In the Posts list, locate the post or page that you want to fix the image links in.

4. On the post or page, click the image.

5. In the image’s Properties dialog box, click the link icon next to the URL field.

6. In the Link URL (URL of the page where the image will appear) field, type the URL of the page where you want the image to appear.

7. Click OK.

8. In the Properties dialog box for the image, click the Publish button.

9. In the Publish dialog box, click the Save button.

10. In the Posts list, locate the post or page that you want to publish.

11.

12. Click the Publish button in the WordPress media library.

13. Click the Statistics link in the WordPress media library.

14. In the Posts Statistics table, verify that the image link has been published to the post or page.

15. If the image link is not published, click the Publish button in the WordPress media library and repeat the steps to fix the image link.

16. Click the Statistics link in the WordPress media library and verify that the image link has been published to the post or page.

17. If the image link is not published, you may need to create a custom media type for the image in WordPress.

To learn more, see How to Create a Custom Media Type in WordPress.

18. If the image link is published, you’re done. Congratulations!.