Support

Account

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
    )