Do you want to import external images in WordPress?
If you have recently moved your website from one platform or host to another, then there is a good chance that you may have external images embedded on your pages.
In this article, we will explain how to properly import those external images in WordPress.
Why Import External Images in WordPress?
External images are images embedded in your content that load from another website or URL different from your main WordPress website.
By default, if you use one of the WordPress importers, then it will try to import images, including featured images. You can see the imported images by visiting Media » Library page in your WordPress admin area.
If you see that all your images are already in the Media Library, but the image URLs in your posts still point to your old website, then you don’t need this article. Instead, you should follow our guide on how to easily update URLs when moving your WordPress site.
However, if you don’t see images imported to your WordPress media library, then continue reading, and we will show you how to import those external images without needing to download images and reupload them.
How to Import External Images in WordPress
Upon activation, you need to visit the Settings » Auto Upload Images page to review the image import plugin settings.
The default settings will work for most users, but you can change them as needed.
For example, the plugin will import images to your default WordPress media uploads folder. You can change that by providing a different base URL. Other than that, it also allows you to set the filename, image alt tag, image size, and exclude post types.
If you do make some changes, then don’t forget to click on the ‘Save Changes’ button at the bottom of the page to store the new settings.
Next, you will need to update the posts or pages containing the external images. Since this is a manual process, it can be time-consuming if you have a lot of content.
Luckily, there’s a quick way to update all posts with external images. Simply go to the Posts » All Posts page and then click on the Screen Options button at the top.
You need to increase the number in the ‘Number of items per page field’ field to ‘999’ and click the ‘Apply’ button.
WordPress will reload the page, and this time it will show up to 999 posts at a time.
Note: If you have slow web hosting, your server may not be able to handle updating so many posts at once. In that case, you will want to do smaller batches of posts at a time or consider switching to better WordPress hosting provider.
Next, you can select all of your posts on this page by clicking the checkbox next to ‘Title’.
After that, you should select ‘Edit’ from the Bulk actions menu and click the ‘Apply’ button.
WordPress will now show you a ‘Bulk Edit’ box with all selected posts.
You just need to click on the ‘Update’ button, and WordPress will update all the posts on your WordPress blog.
Remember, don’t change any of the settings in the bulk edit settings that you see. You just need to click the ‘Update’ button.
This will trigger the plugin to check all selected posts and import external images as it finds them.
If you have more than 999 posts, then you will need to visit the next page to select the remaining posts.
FAQS About Importing External Images in WordPress
Hopefully, this tutorial will have taught you how to import external images in WordPress. If you still have any questions, then we will answer them here.
1. How do I import the media library into WordPress?
First, you will need to go to Tools » Export on the website where you want to get the media library from. Here, you need to choose ‘Media’ and download the media library as a file.
You can then use a plugin like WordPress Importer to upload the media library to your new website. For more details, you can see our guide on how to download your entire WordPress media library.
2. Why is my WordPress media library not showing all images?
If your WordPress media library isn’t showing all the images, then you are likely dealing with the WordPress image upload issue. You can fix this problem by changing file permissions.
For more details, you can see our guide on how to fix the image upload issue in WordPress.
We hope this tutorial helped you learn how to import external images in WordPress. You may also want to learn how to create a custom Instagram photo feed or check out our list of the must-have plugins to grow your site.