Importing To Repeater Fields

The ACF add-on for WP All Import provides 3 modes for importing to repeater fields, depending on the type of file you are using the way your data is structured.

Fixed Repeater Mode

Use fixed repeater mode when each piece of your repeating data is stored in separate columns or elements. For example, if you have a repeater field containing an image, and your CSV file has 10 columns – image_1, image_2, image_3, …, image_10, use Fixed Repeater Mode. Manually add 10 rows the repeater by clicking Add Row, and then drag & drop image_1 to the first row, image_2 to the second row, etc.

Check the “Ignore blank fields” box if some of the records in your file don’t contain values for all 10 images. For example, if image_5 and onwards are blank for a certain record, WP All Import will only add 4 rows to the repeater for that record.

Variable Repeater Mode (XML)

Use this option if your repeating data is stored in XML format as “sibling” elements, for example:

<images>
 <image>image1.jpg</image>
 <image>image2.jpg</image>
 <image>image3.jpg>
 ...
</images>

Dragging & dropping won’t generate the correct XPath expressions when using Variable Repeater Mode (XML). You need to modify your XPath expressions as per WP All Import’s FOREACH syntax.

In this video “Variable Repeater Mode – XML” is used.

Variable Repeater Mode (CSV)

Use this option if your repeating data is stored in a single column in your CSV file, and separated by a separate character. For example, if you have a repeater field containing ingredients (names and measures – i.e. 1/2 cup is the measure and butter is the name), and the names and measures are stored in separate columns in your CSV file, for example…

Names Column: butter,flour,water
Measures Column: 1/2 cup,3 tbsp,4 cups

…then use this option. The first item in the names column will be associated with the first items in the measures column, the 2nd item in the names with the 2nd in the measures, etc.