Home › Forums › ACF PRO › ACF Pro Address Field Replacement › Reply To: ACF Pro Address Field Replacement
I’m also looking for a way to filter CPT’s based on location settings compared to dynamic address matches based on city, state, country.
In other words, end users conduct a search for CPT’s by address and expect post matches to show in order of closest proximity and then filter those results using city, state, zip, country.
The only logical way would be if ACF google maps field stored those address values separately instead of a single value.
How ACF stores google maps address values:
Array
(
[address] => 3 W 18th St, New York, NY 10011, United States
[lat] => 40.738917
[lng] => -73.99243810000002
)
Ideal example of how ACF should store address values (IMHO):
Array
(
[street_address] => 3 W 18th St
[city] => New York
[state] => NY
[zip] => 10011
[country] => United States
[lat] => 40.738917
[lng] => -73.99243810000002
)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.