Forums › Forums › Search & Filter Pro › way to filter out latitude/longitude/numerical values via Post Meta tab?
Tagged: post meta tab, V3
- This topic has 23 replies, 2 voices, and was last updated 5 years ago by Trevor.
-
Anonymous(Private) October 25, 2019 at 6:21 pm #224712
So I have read that you all are working on geolocation and ACF Google Maps integration in v3.
I was experimenting with a dropdown post_meta selector for the location field (ACF Google Maps field)
It shows the cities for each post in the dropdown (awesome!) but it also includes the latitude/longitudes as options.
I’m wondering if there’s a way to use the “Post Meta” tab options as a workaround, to filter out numerical values, but I’m not clear on what the options mean. For example, how would I use the options such as “exists/not exists”, or “like/not like”?
No worries if this just won’t work. I just want a better understanding of how to utilize these options.
If I can’t figure it out, I’ll probably change the ACF field to a text field for entering city/state.
P.S. I said it in another post, but thanks so much for responding quickly to all my questions. I know I’ve had a lot!
Trevor(Private) October 28, 2019 at 2:46 pm #224801You would need to write some PHP and use this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
Trevor(Private) October 28, 2019 at 3:18 pm #224826I can’t give you a specific snippet, but there may be some on our forum. But, yes, looping through the array and matching would be the way to go.
This search will find many:
https://support.searchandfilter.com/forums/search/sf_input_object_pre+input_object+return/
-
AuthorPosts