Skip Navigation

[Resolved] Geocode Address custom field on import creation of custom post-type

This support ticket is created 3 years, 5 months 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 7 replies, has 3 voices.

Last updated by Jamal 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#2153077

Tell us what you are trying to do?
We have an automated service setup to import dealer locations from a CSV file and create posts in our Dealers custom post-type. Part of this post-type is an Address field for the dealers location that is used for our Dealer Locator. The issue is that the imported dealers do not show up on the map unless we use a manual work around to geolocate the new locations. We need some solution to get the system to run a geolocate/geocode on the new post when it is created from the import.

Is there any documentation that you are following?
https://toolset.com/forums/topic/geocode-address-custom-field-on-import-of-post-with-wp-all-import/
This is the link to our previous topic where we got the work around we have been using up until now. In here it is stated that the issue is known to the devs and that a fix for it would be coming in an update. I have just recently tried testing this with the latest versions of all Toolset plugins we use and the locations did not geolocate on import.

#2153545

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is really strange. I'm not sure if this is an issue from Toolset, could be from WordPress as you already acknowledged that the content is rightly imported but just not displaying it on frontend until you re-save the post.

Can you please share few posts where you didnt re-save the posts as well as admin access details so I can review whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2153709

Minesh
Supporter

Languages: English (English )

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

when I try to access the admin login page - it asks me for the authorization access details. Can you please share that as well.

#2153787

Can you set the next reply as private as well for the site lock login?

#2155349

Hello there! Minesh is not available today. If you don't mind, I'll continue with you on this ticket.

Your next reply will be private to let you share credentials safely. You can also update your previous private reply. ** Make a database backup before sharing credentials. **

#2155537

Well, you will need to update Toolset Maps to the latest release. You must also update all the Toolset plugins. Then, you will have a button on the settings page to geocode the missing addresses. Check this screenshot from Toolset->Settings->Maps hidden link

Please take a full backup before updating Toolset plugins.

#2155599

I have updated all of the plugins again and ran the import again, and that Check for Missing button will be helpful with not needing to load up the work around view we had made to geolocate new dealers, however the ideal setup for these would be to have Toolset check for missing cache entries after each automated import rather than having to manually come and click that button. Is there no way to trigger the process that that button triggers whenever an import is run for the Dealers, or even just have each post cache its location data when it is created by the import?

#2156029

Currently, we do not have a programmatic way to create geolocation data for addresses fields. We have only this manual process, that is been introduced in the latest release.

If you need a programmatic way to do it, please ask for it here https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our product managers will evaluate your request and will prioritize it based on how many users ask for it.