Skip Navigation

[Resolved] Import of Datas for Custom Post Type including Adress Field for maps

This thread is resolved. Here is a description of the problem and solution.

Problem:

Import custom address field value with CSV file.

Solution:

The Toolset custom address field is using same field slug structure as other types of custom fields.

For example, custom address field "my-address", in the database, the field slug is "wpcf-my-address", you can import the address values into field "wpcf-my-address".

Toolset Maps plugin is using anther custom database table "wp_toolset_maps_address_cache" to store the address coordinate values(latitude and longitude). The address coordinate values will be generated and stored/cached into database automatically when you display the address field as marker of a map.

Relevant Documentation:

https://toolset.com/course-lesson/data-caching-for-maps-addresses/

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.

This topic contains 4 replies, has 2 voices.

Last updated by thomasB-2 1 month ago.

Assigned support staff: Luo Yang.

Author
Posts
#1679967

Tell us what you are trying to do?
We try to import 2200 Datasets with local offers for support, wich have a street, Postal Code and city. These Datas should be imported and the combination street, PostalCode and city should be create a Toolset Maps Adress field.
In my actual used importing tool WP All Import i see that Adress Field was not supported.
Is there an other other solution for such task?

#1681577

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

The Toolset custom address field is using same field slug structure as other types of custom fields.
For example, custom address field "my-address", in the database, the field slug is "wpcf-my-address", you can import the address values into field "wpcf-my-address".

#1682139

But will these Adress field then while import also geolocated?

#1683381

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Toolset Maps plugin is using anther custom database table "wp_toolset_maps_address_cache" to store the address coordinate values(latitude and longitude), I don't think WP All Import can generate or import those coordinate data.
See our document:
https://toolset.com/course-lesson/data-caching-for-maps-addresses/

The address coordinate values will be generated and stored into database automatically when you:
Display the address field as marker of a map

So you don't need to import those coordinate data.

#1688077

My issue is resolved now. Thank you!