Lifetime licenses are only available for a short time!

Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing lifetime licenses will be unaffected so get in while you can!
  • 90-Day Money-Back Guarantee
  • Fast World Class Support
  • Unlimited Sites
  • Free Lifetime Updates
  • Easy to Use
  • Developer Friendly
Risk free! Cancel at any time with our 90-day guarantee
Get a lifetime license now for only 
$99
"All Import/Export is an awesome suite of tools. It gets me out of some tough challenges."
Eric Karkovack, Freelance Writer
"WP All Import - Versatile, and I have saved so much time with it over the years."
Matt Andrews, Full Stack Web Developer
"@WPAllImport just let me import 3000 products from some arbitrary Excel to WooCommerce w/ a few clicks, including images and categories."
Joris Witteman, Developer / Designer

Wait, Don’t Miss Your Chance for a Lifetime License!

@glitzformals
"This plugin is a game changer for my situation. I’m stunned at how fast and effortless the import process is."
@adatfalo
"I have never experienced such a quick and helpful support experience with any plugin, and by the way, the knowledge of the support colleagues is professional!"
@jessedw44
"Even if you just use this plugin once, it will save you time. If you work on several sites its invaluable. Constantly developed, and continuously supported. Great job."

90-Day Guarantee

Not 100% happy? Let us know and we’ll promptly send you a refund.

Free Updates For Life

Pay once for unlimited installs, even client sites. No renewal fees.

World Class Support

Over 9 years experience with WordPress imports and exports.

Your Last Chance for a Lifetime License!

We are soon moving to yearly licenses only. Once lifetime licenses are gone, they're gone forever.
@adatfalo
"I have never experienced such a quick and helpful support experience with any plugin, and by the way, the knowledge of the support colleagues is professional!"
@jessedw44
"Even if you just use this plugin once, it will save you time. If you work on several sites its invaluable. Constantly developed, and continuously supported. Great job."

90-Day Guarantee

Not 100% happy? Let us know and we’ll promptly send you a refund.

Free Updates For Life

Pay once for unlimited installs, even client sites. No renewal fees.

World Class Support

Over 9 years experience with WordPress imports and exports.
Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
Read More

How to Import WordPress Posts with Images

To import WordPress posts along with their images, go to All Import › New Import and upload your import file. Choose Posts from the dropdown list, then set up your import process, including the images you want to import. Execute the import and then review the imported posts and their images.

The following video shows how to do this. Although it focuses on importing images for WooCommerce products, the same information applies to WordPress posts.

This documentation covers how to import WordPress posts using WP All Import. For a broader look at importing WordPress posts, check out:

Step 1: Create New WordPress Posts Import

Go to All Import › New Import and upload your import file. Select Posts from the dropdown list of available post types to import, then click Continue to Step 2.

Import WordPress Posts with Images New Import

Step 2: Review Posts Import File

In the Review Import File screen, you can review the posts and images to import. If you see any problem with the import data, edit your import file and repeat this process.

Import WordPress Posts with Images Review File

In this screen, you can also Add Filtering Options that let you decide which records should be imported instead of importing everything contained in your import file.

Once done, click Continue to Step 3.

Step 3: Map Posts Data to Correct Import Fields

Now you see the Drag & Drop screen, where you build the template that's used for the import. To add fields, drag them from the right panel to the appropriate target field on the left.

Title & Content

Map the title, content, and short description first:

Import WordPress Posts with Images Drag and Drop

Below this section, you will find the Images section:

Post Images

Here, you define which images should be imported into each post. This includes the featured image.

Import WordPress Posts with Images Images Section

The options here provide different methods to import your images:

Download images hosted elsewhere

This is the default option, which uses direct URLs to download the images. The images will be added to the Media Library once they're imported.

Use images currently in the Media Library

If the images for the import already exist in the Media Library, you can use this option instead of downloading new images. In this case, you just need to import the image filenames.

Use images currently uploaded in wp-content/uploads/wpallimport/files/

If you have the images on your computer, you can upload them to this folder and use this option. The images will be added to the Media Library upon import. Again, all you need to provide here are the image filenames.

Images Options

These options are self-explanatory and also contain a "help" tip when necessary. That said, here is a brief explanation for each:

– Search through the Media Library for existing images before importing new images

Enabled by default. If an image with the same file name or remote URL is found in the Media Library, then that image will be attached to the imported record instead of downloading a new image. Disable this setting to always download a new image.

– Keep images currently in Media Library

Enabled by default. When disabled, all images attached to the imported post are deleted from the Media Library, forcing the images to be imported again.

– Scan through post content and import images wrapped in <img> tags

This option will search through your post content for <img> tags. If found, those images will be downloaded and added to your Media Library, and the old image URL in the content will be updated to the newly imported image. This ensures that you are hosting the content images.

Enabled by default. This assigns the very first imported image as the Featured Image or _thumbnail_id for this record.

– If no images are downloaded successfully, create entry as Draft.

When enabled, even if you define that all posts should be imported with a Published post status, any post that doesn't contain a valid image will be created as a Draft.

SEO & Advanced Options

Under this panel, you can add metadata to the images (such as title, caption, alt text, and descriptions) and change the image file names and extensions.

There are other sections below, but we won't go over these now. Once everything is mapped, click Continue to Step 4 at the bottom of the page (not shown).

Step 4: Configure Settings to Import Posts with Images

Next, you see the Import Settings screen, where you define the remaining import settings and configurations.

Click on Auto-detect to create a unique identifier, which allows WP All Import to distinguish between posts.

Import WordPress Posts with Images Import Settings

In this same panel, you define how the import behaves whenever it's run again. For example, you can tell the import to update specific pieces of data for previously imported posts, or to delete posts missing from the import file.

You also have two other panels: Scheduling Options and Configure Advanced Settings. We'll leave these untouched for this example.

Click Continue at the bottom to go to the next step.

Step 5: Run the Import and Review the Imported Posts

You now see the Confirm & Run screen with an import summary:

Import WordPress Posts with Images Confirm and Run

After you verify that everything is correct, click Confirm & Run Import to execute the import. Once it completes, you'll see this screen:

Import WordPress Posts with Images Import Complete

You can then navigate to Posts › All Posts and check that the posts and their images were correctly imported.

Import WordPress Posts with Images — Advanced Topics

Import Images From An FTP Source

To import images from an FTP source, you need to use the Download images hosted elsewhere option along with a custom PHP script that downloads your image from the FTP source and returns it.

You can use the code from the Workaround for Importing from FTP to achieve this:

Import WordPress Posts with Images from FTP Source

Import Images From An External Source

You can import images from most external sources. Most of the time, you simply use the default option Download images hosted elsewhere and input the URLs to the images.

If you don't have a direct link to the image, for example, when images are stored on Google Drive, you need to generate and provide direct URLs.

If the images are protected by HTTP auth, you can use the same instructions as explained in Password Protected Files.

Import Variable Number of Images Per Post

In some cases, your import file may contain multiple images to import. Here are the most common:

Option A: Image URLs Stored In A Single Column Or Element, And Separated By A Character

You can input multiple values and separate them by a comma (selected by default), though the separator can be updated when required. You can type in this data manually to apply it to all records, or use import elements to apply it dynamically based on your import file.

Option B: Image URLs Stored In Different CSV Columns or XML Elements

To include all possible import elements with image URLs, just enter one per line. If there are empty elements, they will be ignored, so you can safely add all possible XPaths:

Option C: Use an XPath Query or a FOREACH Loop

With XML files, there may be multiple child elements with the exact same name. Example XML:

Import WordPress Posts with Images XML Example

You can use an XPath query to output a comma-delimited list with the image names from that example XML:

{images/image/@src}

Or, you can use a FOREACH loop to traverse through each child element, allowing you to add extra data that's also returned:

[FOREACH({images/image})]
http://www.example.com/my-folder/{@src},
[ENDFOREACH]

Import WordPress Posts with Images — Frequently Asked Questions

How Do I Export A WordPress Post with Pictures?

  1. In WP All Export, go to All Export › New Export.
  2. Choose Posts from the dropdown list.
  3. Add the images and everything else you need to export.
  4. Run the export, and download the posts with images.

Learn more in WordPress Export Posts with Images.

How Do I Migrate WordPress Posts and Their Images?

  1. On the export site, go to All Export › New Export.
  2. Choose Posts and then Migrate Posts.
  3. Download the exported bundle file
  4. On the destination site, go to All Import › New Import.
  5. Upload the bundle file to migrate the posts with their images.

Learn more about this process in the Migrate Quickstart guide.

How Do I Import A Featured Image in WordPress?

  1. Create your import via WP All Import.
  2. In Step 3, in the Images section, add your images import element.
  3. Enable the option Set the first image to the Featured Image (_thumbnail_id).
  4. Run the import and see the added featured images.

Learn more about the import process in the Import Quickstart guide.

Related Docs

Learn about the differences between a "New Items" and "Existing Items" import.

Learn how to import WordPress posts using WP All Import.

Learn more about how to set up and use recurring import processes.

Related Videos

Lifetime support. Lifetime updates. Pay once.

Packages
Standalone
Import
Pro Package
$249
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Pro Package
$299
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
WooCommerce Import Package
$149
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Standalone
$169
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Export Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
cross