Wait!

Lifetime licenses are only available for a short time, don't miss out!

Any File Type

No need to reorganize your data, just upload your file to WP All Import and it'll sort it out.

Complete Customization

Granular control over every single piece of data. Think your import is too complicated? Think again.

Import Huge Datasets

It doesn't matter how big your site is or how much data you need to import, WP All Import can handle it. 

Multilingual Imports

Importing data to multilingual sites has never been easier, with support from the WPML team.

Scheduled Imports

Run imports automatically on a schedule. Subscribe to our point and click scheduling service, or set up cron jobs.

Developer Friendly

Write and test PHP right inside WP All Import when setting up your import, with tons of snippets to get you started.
@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.
Fast, 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

Variable Number Of Images Per Post

Sometimes, each record in your XML or CSV file will have a different number of images associated with it. Here are some of the most common ways to handle this scenario with WP All Import.


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

Simply drag & drop the column or element containing your image URLs or filenames to the appropriate textbox, and enter in the appropriate Separator character if it is different than a comma.

Drag and drop single element

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

WP All Import will ignore any blank image URLs, so you can simply specify all possible XPaths that could potentially point to image URLs for certain records. Any that don’t point to image URLs for the current record will be ignored for that record.

1. Go to the record in your XML or CSV file has the most images in the XML/CSV tree on the right, by entering in the record number and then clicking anywhere on the XML/CSV tree:

XML Tree View

2. Drag & drop all the elements or columns containing image URLs into the image URLs box.

Multiple image elements

Although you can’t see it in the screenshot, in our example, record 179 has 9 different images.

No other records have 9 different images, they have between 1 and 8. WP All Import will simply ignore {image_9[1]} when it doesn’t exist, {image_8[1]} when it doesn’t exist, etc.

Option C: Use an XPath query or a FOREACH Loop

If all your image URLs are stored as child elements of some parent element, you can use a FOREACH loop to loop through each child element.

This is only applicable to XML files.

Example XML:

<images>
    <image src=”image1.jpg” alt=”i am first image”>Featured Image</image>
    <image src=”image2.jpg” alt=”this is image2″>Second Image</image>
    <image src=”image3.jpg” alt=”this is image3″>Third Image</image>
    <image src=”image4.jpg” alt=”this is image4″>Fourth Image</image>
</images>

You can use this XPath query to output a comma delimited list of the image names:

{images/image/@src}

Or, if you need to prepend a URL, or add something else to the data, you can use a FOREACH loop instead:

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

More information on FOREACH loops.

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