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.
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.
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. **
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.
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?
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.