[Cerrado] Using Toolset Address field with FacetWP
This support ticket is created hace 2 años, 10 meses. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Tell us what you are trying to do?
Hi. I'm trying to use a FacetWP proximity facet to filter posts based on the address stored from a Toolset address field. It appears that the facet isn't seeing the stored coordinates. I looked in the database and it appears the coords are stored in an interesting way... I checked with FacetWP support and they said if I can find out how the data is stored I can use an indexer hook to tell FacetWP how to index the lat and long.
Is there any documentation that you are following?
No
Is there a similar example that we can see?
Yes, but would prefer to keep private.
What is the link to your site?
Would prefer to keep private during development.
For example, suppose that you need a comma-separated latitude and longitude value from the address field with slug 'post-location', from post with ID "123".
The "types_render_field" function, in this case, will be used as:
I'm still trying to make sense of this, have not solved the problem, and am only replying on a Saturday because your "cleanup robot" prompted me to do so... Please don't close this ticket yet.