Problem:
The client wants to use the CRED API to save the lat/lon coordinates of a post that contains an address field as well as the text address itself.
Solution:
Views caches the coordinates alongside the address string in wp_options and they can be retrieved using the WP function get_option. The format is described below: https://toolset.com/forums/topic/store-lat-long-coordinates-at-cred-submission/#post-902441
Relevant Documentation:
https://developer.wordpress.org/reference/functions/get_option/
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.
Our next available supporter will start replying to tickets in about 1.71 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 6 replies, has 2 voices.
Last updated by 6 years, 6 months ago.
Assisted by: Nigel.