Skip Navigation

[Resolved] Integration with wp maps pro

This support ticket is created 2 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 3 voices.

Last updated by juttaB 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2286845

Tell us what you are trying to do?
I want to display a CPT for custom fields created in toolset in wp maps pro, as it is possible, to show a .geojson overlay there.
I would like to add some toolset custom fields to the mapmaker-popup, but it does not work.
Is there any specific way to name the piston fields?
We tried:
wpcp-slugname
slugnam
%slugname%

The webdesigner also tried
[credform]
<div class="form-group">
<label for="%%FORM_ID%%_zeitraum">[cred_i18n name='zeitraum-label']Zeitraum[/cred_i18n]</label>
[cred_field field='zeitraum' force_type='field' class='form-control' output='bootstrap']
</div>
[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/credform]

but this broke the map.

I think I would need the correct names of my custom fields and a hint how to embed them.

Is there any documentation that you are following?
This is how it should work for advanced custom fields:
hidden link

Is there a similar example that we can see?

What is the link to your site?

#2286859
Bildschirmfoto 2022-02-08 um 15.36.43.png

Then there is another post where I would like to integrate toolset with wp maps pro:
wp-maps offer a way to show postings using custom fields. What would be the correct fieldnames?

#2286893

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jutta,

Thank you for getting in touch.

The correct slug for the custom field is.
wpcf-slugname

Assuming that zeitraum is your address field then your slug will be.
wpcf-zeitraum

Each Toolset custom field carries the wpcf- prefix when stored to the database.

Thanks,
Shane

#2286895

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

If you just want to know how to output a Toolset custom field in a similar way that you would an ACF field, the only part that is missing is that Toolset stores its custom fields (as standard post meta) with a 'wpcf-' prefix.

So in the example from the how to page you linked to, if you had "phone" and "website" custom fields, their post meta keys would be "wpcf-phone" and "wpcf-website" and so—according to that documentation—you would output them using "{%wpcf-phone%} and {%wpcf-website%}.

#2286931
Bildschirmfoto 2022-02-08 um 17.23.33.png

Nigel and Shane, thanks für your support it works!

where can I get the slugs for the geo-date? I need address, latitude, longitude for wp maps pro als well.

hidden link

See screenshot: this is how it does not work 🙂

Thanks in advance!

#2287081

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jutta,

Unfortunately only the address is stored in the post meta table for the database. We do not store the Lat/Long coordinates in the post meta table so it won't be retrievable by conventional means.

The coordinates are always stored in the cache table for maps. We do not offer a proper API to let you reuse the coordinates.

Thanks,
Shane

#2288675

Thanks for the info!