Data Sync is the scheduled-import part of the Import & Sync add-on. A sync task reads your stores from a CSV file at a web address, a Google Sheet or a REST API, and imports them again on a schedule. New stores are added, changed stores are updated, and stores that are gone from the source can go to the Trash.
This page explains the tasks themselves. For the connection details of each source, see its own guide:
| Source | What you need |
|---|---|
| CSV URL | A link to a CSV file: an export from your own system, a Dropbox or OneDrive share link, or a Google Sheet published as CSV. A login if the file needs one. |
| Google Sheets | A Google Sheets API key and a sheet shared as “Anyone with the link”. |
| REST API | The address of a JSON API and its login: an API key, a token, a username and password, or OAuth 2.0. |
| Salesforce | The REST API source with an External Client App ( or an existing Connected App ) that uses the Client Credentials Flow. |
- Requirements
- Create a Sync Task
- Map Fields
- Import Options
- Schedule
- Email Reports
- The Task List and History
- The Store Editor
- Run Scheduled Tasks on Time
- Troubleshooting
Requirements
- Import & Sync 2.3.0 or later.
- WP Store Locator 3.
- WordPress 6.6 or later.
On WP Store Locator 2, or on an older WordPress, the CSV import and export work as before, but there is no Data Sync tab.
Create a Sync Task
Go to Store Locator > Import & Sync, open the Data Sync tab and click New sync task. A task takes four steps.
-
Source
Under Where are the stores?, choose CSV URL, Google Sheets or REST API.

-
Connect
The first field is Name. It’s filled in for you with the source and today’s date, and shown in the task list and the email reports. Change it to something you recognise, such as “Dealers sheet”.
Below it are the fields of the source you chose: the address, and the login when the source needs one. The source guides explain them:
Then click Test connection. It reads the source and says, for example, “Connected. 12 rows found.”, or in plain words what went wrong. Next: Map fields becomes available once the test passes.
-
Map fields
Every column of the source, with its value from the first row. See Map Fields below.
-
Options & schedule
What the task does with existing and removed stores, when it runs and who gets the report. See Import Options, Schedule and Email Reports.
Finish with Save task, or with Save and run now to start the first run right away. A run works in the background, so you can leave the page while it imports.
Edit a Task
Click the task’s name, or the Edit button under it. The four steps are then tabs you can open in any order, and Save task is on every step. When you change the connection, click Test connection again before you open Map fields.
Map Fields
The Map fields step shows how many rows the source has, and a table with three columns: Store field, Column and Example. Columns with a matching name are mapped for you; pick the store field for the others. Set a column to Do not import to skip it: on existing stores that field is then left as it is.

The store fields you can map to:
- Store Name, Address and City. These are required: you can’t continue until a column is mapped to each of them, and a row without a value in them fails.
- Description, Address 2, State, Zip Code, Country, Country ISO, Latitude, Longitude, Phone, Fax, Email and URL.
- Category: one or more category names, separated by a comma or a |. A category that doesn’t exist yet is created.
- Image URL: the address of an image, which is downloaded to the Media Library and set as the store’s featured image.
- External ID and WP Store Locator ID: see below.
Opening hours and other store fields are not in this list. To import those, use the CSV import on the Import tab.
The ID Columns
On every run the task has to find out which store a row belongs to. It does that by the row’s ID when you map one, and otherwise by the store’s name, address and city.
Without an ID, a store that is renamed or moves in the source looks like a new store: the task adds it again, and the old one is no longer in the source. With Trash removed stores? on, the old one then goes to the Trash. So map an ID column when your source has one. When none is mapped, the step reminds you: “No ID column is mapped. Map one to External ID or WP Store Locator ID, so a store that is renamed in the source is still found.”
- External ID: the store’s ID in your own system, such as a store number, a record ID or a UUID. It’s saved with the store and finds it on each run. A column named
id,uuid,store_id,location_idorexternal_idis mapped to it for you, and so are names likeCustomerID. - WP Store Locator ID: the ID WordPress gave the store on this site. Use it when your source started as an export from this site: the export’s
wpsl_idcolumn. It’s only used to find the store. To be safe, the first time it only finds a store whose name, or address and city, still match the row; after that the task knows the store. An ID that isn’t a store on this site, or that belongs to another store, is reported in the run’s notices, and the row is matched by name, address and city instead.
Import Options
The first block of the Options & schedule step, Import options.

| Option | What it does |
|---|---|
| Existing stores Default: Update them from the source |
A row belongs to an existing store when its External ID matches, or else its name, address and city. Update them from the source writes the row’s values to that store. A store that wouldn’t change is left alone and counted as unchanged. Leave them unchanged only adds new stores. A row that matches a store is skipped. If another task also imports that store, the task that runs last wins, and both reports list it. |
| Link existing stores to this task? Default: off |
For stores this task didn’t create: added by hand, by an earlier CSV import, or by another task. On: when a row matches such a store, the task updates it instead of adding a new one, and from then on treats it as one of its own. It finds the store by its ID, even after a rename, and if the row is removed from the source, Trash removed stores? can move it to the Trash. Off: the store is still updated, but the task finds it only by name, address and city, and never trashes it. Turn it on when the stores are already on your site and this task takes them over, for example after you imported them once with a CSV file. |
| Look up coordinates? Default: on |
Rows without a latitude and longitude are looked up with the geocoding service from your WP Store Locator settings; the tooltip names it. A store whose address changed is looked up again. An address that can’t be found is saved without coordinates and listed in the run’s errors. It isn’t sent again on later runs, so it doesn’t cost you lookups every time, until you change the address. With this off, a store whose address changes keeps its old position on the map, unless the row has new coordinates. |
| Trash removed stores? Default: off |
At the end of a run, stores of this task that are no longer in the source are moved to the Trash. Only stores this task imported ( or linked, see above ) go. A store that another task also imports stays. Stores go to the Trash, they are never deleted. When the row comes back in the source, the store is restored. |
| Safety limit Default: 25 % of this task’s stores |
Shown when Trash removed stores? is on. It protects your stores against a broken or half-empty file: when more than this share of the task’s stores would be moved to the Trash, the run moves none and the report says why. Enter 1 to 100. A run also moves nothing to the Trash when rows failed, when the source returned no rows, or when the Trash is turned off on your site ( |
Schedule
The Run setting in the Schedule block:
| Run | What you set |
|---|---|
| Only when I click “Run now” Default |
Nothing. The task runs when you click Run now in the task list, or Save and run now. |
| Every hour | The minute of the hour: On the hour (:00), or At :05 to At :55. |
| Every day | A time of day, in steps of 15 minutes. Click Add a time to run more than once a day, for example at 2:00 am and 2:00 pm. |
| Every week | A day of the week and a time. Click Add a day and time for more runs a week, for example Monday and Thursday at 6:00 am. |
The times are in your site’s time zone ( Settings > General ), and the step shows the time there now. A daily run at 2:00 am stays at 2:00 am when daylight saving time starts or ends.
Only one task runs at a time. A task that is due while another one runs waits in line, and starts when the running task ends.
WordPress starts scheduled tasks when someone visits your site. On a quiet site a task can start late; see Run Scheduled Tasks on Time.
Email Reports
Email report, in the same block as the schedule:
- After every run ( default ): a report after each run.
- When something went wrong: only when the run failed, a row failed, or removed stores were not moved to the Trash ( for example because of the safety limit ).
- Never.
Send it to is filled in with your own email address for a new task. Leave it empty to send the reports to the site’s admin email ( Settings > General ).
The subject says how the run ended, for example “WP Store Locator – Data Sync Task Complete”, “… Completed with Errors”, “… Complete, Removal Skipped”, “… Failed” or “… Stopped”. The report lists the task, the source, who or what started it, when, how long it took, and how many stores were imported, updated, unchanged, skipped, failed and moved to the Trash, with the first errors and notices. The Open Data Sync button opens the task’s History.
A run you stop yourself is only reported with After every run.
The Task List and History
The Data Sync tab shows four tiles: Sync tasks, Running now, Need attention ( tasks whose last run failed or had errors, or that are late ) and Stores kept in sync. Filter the list with All, Scheduled, Paused and Problems.

Each task has four columns:
- Task: the name, and below it where the stores come from.
- Schedule: for example “Daily at 2:00 am and 2:00 pm”, “Hourly at :15”, “Weekly, Monday 6:00 am”, or “Manual start”.
- Last run: how it ended ( Completed, Completed with errors, Failed, Stopped or Skipped ), when, and what changed, such as “3 new, 12 updated”, or No changes when every store was already up to date. Stores moved to the Trash and failed rows are added to that line. While a task runs you see a progress bar; a task that waits for another one says Queued.
- Next run: when it runs next ( “In 25 minutes” within the hour ), or Paused, Late or Draft. A task that only runs when you click Run now shows a dash.
When a run had a problem, it’s shown under Last run. Two or more are a link, such as “5 errors”, that opens them in a table with the row number and the message.
The Buttons Under a Task
| Button | What it does |
|---|---|
| Edit | Opens the task’s settings. |
| Run now | Starts a run right away, also for a paused task. If another task is running, this one waits in line. |
| Stop run | Takes the place of Run now while the task runs or waits. What the run already imported stays on the site, and no stores are moved to the Trash. The schedule stays as it is. |
| Pause / Resume | Pause stops the schedule: a run in progress finishes, and after that the task doesn’t run on its schedule until you resume it. Resume works out the next run from now. |
| History | Opens the task’s last 20 runs under it. Greyed out until the first run. |
| Delete | Deletes the task. Its stores stay on the site, but stop updating. A running task is stopped first. |
History
The History lists each run with when it Started, the Trigger ( Schedule, Run now with your name, or Started late ), the Result, and five counts:
- New: stores the run added.
- Updated: stores that changed.
- Unchanged: stores that were already up to date. They are not written again.
- Failed: rows that could not be imported, for example because the name, address or city is empty.
- Trashed: stores moved to the Trash because they are no longer in the source.

Errors and notices of a run are listed under its result. Clear history empties the list; the task’s stores and schedule stay.
The Store Editor
When a sync task keeps a store up to date, the store’s edit screen has a Data Sync box in the side column. It says “This store is kept in sync by:” with the name of the task, which links to it, and how the task finds the store:
- “ID in the source: …” with the store’s External ID.
- “WP Store Locator ID …” when it’s found by that ID.
- “Matched by name, address and city” when no ID column is mapped.

With Existing stores on Update them from the source, a change you make by hand in such a store is overwritten on the next run, for the fields the task imports. Change it in the source instead.
The box only shows for stores the task created or linked. A store that a task only updates ( Link existing stores to this task? off ) doesn’t get it.
Run Scheduled Tasks on Time
WordPress has no clock of its own. It only checks for scheduled tasks, Data Sync tasks included, when someone visits your site. On a busy site that happens all the time. On a quiet site, or when your host turned this check off, a task can wait until the next visit.
Data Sync catches up by itself: a task that is more than an hour late starts the next time anyone opens a page in the WordPress admin. One late run is nothing to worry about; its History says Started late. When a task starts late three times in a row, or more than a day late, you get one email: “WP Store Locator – Data Sync Task Started Late”. It goes to the task’s report address, and not when Email report is set to Never.
To have tasks start on time, something has to open your site’s wp-cron.php on a timer, every five minutes. A run also moves on faster that way: it imports in steps, and between steps it waits for WordPress to check for scheduled tasks again. You can set this up in three ways.
On Your Server
Most hosting control panels have a page for cron jobs:
- cPanel: Advanced > Cron Jobs. Under Common Settings choose Once Per Five Minutes, and enter the command below without the
*/5 * * * *at the start. - Plesk: Websites & Domains > Scheduled Tasks > Add Task. Choose Fetch a URL, enter
https://example.com/wp-cron.php?doing_wp_cronand run it every five minutes (*/5 * * * *). - Your own server with SSH: run
crontab -eand add this line:
*/5 * * * * wget -q -O - "https://example.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1
Replace example.com with your site’s address. The “Data Sync Task Started Late” email has this line with your address filled in, so you can forward it to your host. No cron jobs page in your control panel? Ask your host: many set it up for you, and some managed hosts already run WordPress’s scheduled tasks on a timer.
With an Online Cron Service
If you can’t add a cron job yourself, a free online cron service, such as cron-job.org or EasyCron, can open the address for you. Create a job that opens https://example.com/wp-cron.php?doing_wp_cron every five minutes. If a security plugin or firewall blocks those requests, allow that address.
With a Plugin
A plugin runs inside WordPress, so on its own it has the same problem: it only runs when someone visits. A cron plugin helps in two ways:
- It lets you see and start the scheduled tasks. WP Crontrol ( free ) lists every scheduled event, including Data Sync’s (
wpsl_sync_scheduled), shows when each one is due and has a Run now link. - Some cron plugins connect your site to an online cron service. That works like the option above, and it starts tasks on time.
Optional: Turn Off the Check on Visits
Once the cron job runs, you can add define( 'DISABLE_WP_CRON', true ); to wp-config.php, so page visits no longer check for scheduled tasks. While a task has a schedule, the Data Sync tab then says: “WP-Cron is turned off on this site. Scheduled tasks only start when a server cron job calls wp-cron.php. Run now still finishes while this page is open.” Do this only after the cron job works.
Troubleshooting
The message Test connection shows is the fastest clue. Messages about one source are explained in its guide: Google Sheets, CSV URL, REST API and Salesforce. These can come from any source:
| Message | What it means and what to do |
|---|---|
| The source has no columns. Check that its first row holds the column names. | The first row ( in Google Sheets: the Header Row ) is empty or isn’t the row with the column names. |
| Some mapped columns are no longer in the source. | A column was renamed or removed in the source. On the Map fields step it’s marked “Not in the source anymore”. Map the new column, or save: the missing column is then saved as Do not import. |
| Row 4: Missing required fields: City | That row has no value in Store Name, Address or City. Fill it in in the source. The other rows are imported. |
| Row 7: Geocoding failed: … | The address couldn’t be found, or the result was in another country. The store is saved without coordinates. Check the address, or add latitude and longitude columns to the source. When every row fails, check the API key of your geocoding service in the WP Store Locator settings. |
| Removal skipped: 30 of 100 stores would be moved to the Trash, above the 25% limit. | The safety limit stopped the run from trashing stores. If the source really lost that many stores, raise the Safety limit for one run, then set it back. If not, check the source: it may have been empty or cut off. |
| Removal skipped: 2 rows failed, so their stores could look missing. | Stores are only moved to the Trash after a run without failed rows. Fix the failed rows; the next run trashes what is really gone. |
| Removal skipped: the source returned no rows. | An empty source never trashes your stores. Check the source. |
| The URL points to a private or local address. or “… it points to a private or local address. Use a public address.” |
The address is on your own network or on the same server. Data Sync only reads public addresses. A file on your own computer or server can be imported with the CSV import on the Import tab instead. |
| The address of the URL could not be found. or “example.com could not be found. Check the address for typos.” |
The host name doesn’t exist. Check the address for typos. |
| The source is larger than 20 MB. | One run reads at most 20 MB. Split the stores over two sources, each with its own sync task. |
| The saved login can no longer be read. Enter it again. | The security keys in wp-config.php changed, so the encrypted login can’t be read. Edit the task, enter the key, token or password again and save. The task list warns about this before the next run fails. |
| … could not be encrypted, so it was not saved. Define AUTH_KEY in wp-config.php. | Your site has no usable AUTH_KEY. Add the WordPress security keys to wp-config.php; you can generate them at api.wordpress.org/secret-key/1.1/salt/. |
| Skipped: the previous run of this task was still running. | A run was due while the previous one hadn’t finished. The task runs again at its next time. If it happens often, run the task less often. |
| The import stopped responding … times and was stopped. | A run kept stopping halfway, often because of a PHP time or memory limit. Check the server’s error log, or ask your host. What was imported stays. |
A task that keeps starting late: see Run Scheduled Tasks on Time.
Still stuck? Send us the message you see, and the task’s settings, and we’ll help.