All Import Pro – ACF Image

Quick tip to import images into an Advanced Custom Fields image field.

This is assuming the column in your spreadsheet is just the filename of the image, no URL.

Step 1) Upload the images to your media library.

Step 2) Note the full directory of an image, e.g. https://www.example.com/wp-content/uploads/2024/09/

Step 3) Install the All Import Pro plugin and the ACF extension to AIP.

Step 4) When mapping the fields in the AIP template, note that WordPress will like have renamed your images you uploaded, and you need the full URL, so use something like:

https://www.example.com/wp-content/uploads/2024/09/[sanitize_file_name({logo[1]})]

Here we’re prepending the URL of the already uploaded image, and then sanitizing the inputted filename to match what WordPress would have renamed it to.

Also be sure to check the “Search through the Media Library for existing images before importing new images” box as well.