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:
versteckter Link
Is there a similar example that we can see?
What is the link to your site?
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?
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
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%}.
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.
versteckter Link
See screenshot: this is how it does not work 🙂
Thanks in advance!
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