Skip Navigation

[Resolved] Geocode Address custom field on import of post with WP All Import

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 4 years ago.

Assisted by: Minesh.

Author
Posts
#1879785

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.

#1879999

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

Please check the following ticket that may help you to implement the workaround:
- https://toolset.com/forums/topic/maps-plugin-not-recognizing-custom-field-when-content-is-imported/#post-1869711

#1894413

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.

#1894541

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

@williamS-10:
- Please kindly open a new ticket for every new question you may have.