Tell us what you are trying to do?
Use a csv of data to import into a dealer custom post type used for a dealer locator using Toolset Maps. On import WP All Import can fill the Address field but does not run anything to geolocate the address for placing the pin on the map. It geocodes automatically on clicking Edit on that post but I need it to geocode the address on import without having to go and click Edit on all new dealers.
Is there any documentation that you are following?
I have tried multiple solutions like trying to geocode in custom functions and save that to the address field or push directly to the wp_toolset_maps_address_cache database table. Nothing has seemed to work on import.
Easiest solution would be if Toolset has some function to trigger the geocode based on the post ID.
Hello. Thank you for contacting the Toolset support.
Toolset Maps stores the Address to the custom table wp_toolset_maps_address_cache and when you import the content this table remains blank as no content is added to it.
This is a known issue to us and already reported to our Devs and we expect the solution as soon as possible (could be by next month, no promises yet).
But the workaround would be to create a paginated view having map and navigate to all page one by one that we it will automatically add the address wp_toolset_maps_address_cache table.
We have implemented said work around and it appears to be working to geocode our locations in groups of 5 at a time, however the workaround appears to be having an issue where we are getting the correct number of pages for the number of dealers we have, but the results seem to break between pages 108-126 showing the same results and not a different 5 each time. The same issue is happening between pages 127-144, the page here is our current workaround where you can see the pages showing the same duplicate results: hidden link
The view has no filters, is sorted by post date, paginates manually and reloads the page, and we have a total of 1025 dealers that are not duplicated in the admin which breaks out to the 205 pages of 5 results we are seeing, its just that the pages seem to be loading the same 5 results over and over again for no apparent reason.