Forums Forums Search & Filter Pro ACF city-selector field plugin

Viewing 10 posts - 1 through 10 (of 26 total)
  • Anonymous
    #248090

    Hi,

    I am using a Country/Region/City extension for Advanced Custom Fields. It creates an ACF field type called ‘City selector’.
    link plugin https://github.com/Beee4life/acf-city-selector
    This is supposed to display on the UI in 3 seperate tabs.

    For example, when adding a post about a location:
    The first tab displays all Countries. The user can then select a Country.
    The second tab then displays all Regions in the selected Country. The user can select one.
    The third tab then displays all Cities in the selected Region. The user can select one.

    This worrks perfectly in my front-end-forn and in the backend (post add / edit).

    I have also included this field in a S&F Pro form, as a ‘Post-Meta’ field, to filter the posts in a post archive layout. The filter works correctly BUT all Countries/Regions/Cities are shown in a single dropdown. This isn’t user friendly.

    I’m not a developer and I don’t have the ability to write php code, so I need your assistance to make this filter display properly. I can send screenshots and a link to the city-selector documentation if necessary.

    Trevor
    #248093

    I think the extra (third party?) ACF plugin uses a repeater field, where it has all three fields in one ‘row’. Our plugin cannot work with this, sorry. You need to make 3 separate ‘normal’ fields which are Countries, Regions and Cities.

    When you use them in posts, as long as you set our form up correctly, our form will link them together. To do this, in the General settings tab of the form:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    Anonymous
    #248114

    That’s not a good suggestion!
    make 3 separate ‘normal’ fields which are Countries, Regions and Cities
    It will drive users crazy when entering data

    Anonymous
    #248116

    I see that you previously suggested that you solve this problem with save_post+add_action
    , whether it still works
    https://support.searchandfilter.com/forums/topic/acf-city-selector-field/

    Trevor
    #248118

    It is the only way, unless you set up a save system that auto saves the data separately. Our plugin cannot search the data type you want, as the data is stored as an array, and not as separate data terms.

    Anonymous
    #248122

    Where can I find this “save system that auto saves the data separately”

    Trevor
    #248124

    If you create these extra fields, you can get help on the calculated fields help on the ACF forums. You would have to write the code though. This post shows an example, but the guys at ACF should be able to give better examples:

    https://support.searchandfilter.com/forums/topic/datefilter/page/3/#post-238869

    Anonymous
    #248128

    Can you take a moment to help me solve this problem? I spent a lot of time with it
    I’ll send you the login details

    Trevor
    #248130
    This reply has been marked as private.
    Anonymous
    #248136
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 26 total)