Import Export

Exporting Listing data

We recommend using the plugin WP All Export (the free version is enough) to export the Listing data from Auto Listing. Please follow these steps to do that:

Creating an export file

To start exporting the data, go to All Export > New Export, select post type Listing, and click Customize Export File.

Select post type Listing

Adding Listing fields

In the next screen, add fields you want to export. Select the fields that start with_al_listing from the list on the right, under Available Data > Custom Fields.

Adding Listing fields

Modifying _al_listing_image_gallery

Every Listing fields can be exported normally except for _al_listing_image_gallery. Auto Listings use Meta Box to create meta boxes and custom fields. Meta Box will save the value of the Image field as ids, not URLs. In order to import this field, you should need to convert those ids into URLs.

Click the _al_listing_image_gallery field in the added area to edit it. Next, click the checkbox Export the value returned by a PHP function, and then enter the function name auto_listings_wpai_get_image_url. This function is supplied by the Auto Listings plugin to support this feature.

Modify _al_listing_image_gallery

After that, click the Continue button to start exporting. You’ll get a CSV file like this:

Export Listing Data

Importing Listing data

Similar to exporting Listing data, we recommend using WP All Import plugin to do the job. However, to import custom fields data, you need to purchase the Pro version of the plugin. Note that to export Listing data, the free version of the WP All Export is enough.

To importing data, create a new import and configure other fields (title, content, etc.) as usual. In the Custom Fields panel, click See Detected Fields to load all the Listing fields

Detected Fields

If you can find any fields, click Add Custom Field, enter the key and value for that field.

Add new custom field

Again, all the Listing fields can be imported without any problems, except for _al_listing_image_gallery. First, you need to download the image from URLs. Click Images panel, enter "|" to as the seperated symbol, then drag the imageurl field into the textarea below. The imageurl is the name of the column in the file that was exported above.

You can check if the image can be downloaded by click the button Preview & Test.

Download images from URLs

Then drag that imagurl field in to the value of _al_listing_image_gallery field below as well.

If you import the listing data from an XML, the data structure might be different, like this:

In this case, you need to drag every single image field into the textarea, seperate them by the symbol '|'. Again, copy this value in the textarea into the value box of _al_listing_image_gallery field.

After that, start importing and you’ll see the data is imported. If you have any trouble configuring imports, please follow the documentation of WP All Import.