Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro ACF city-selector field

Viewing 8 posts - 1 through 8 (of 8 total)
  • Chris Parker
    #196138

    Hi,

    I am using a Country/Region/City extension for Advanced Custom Fields. It creates an ACF field type called ‘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 Moderator
    #196141
    This reply has been marked as private.
    Chris Parker
    #196190
    This reply has been marked as private.
    Chris Parker
    #196194
    This reply has been marked as private.
    Trevor Moderator
    #196224
    This reply has been marked as private.
    Chris Parker
    #196297
    This reply has been marked as private.
    Trevor Moderator
    #196329

    Great to speak with you Chris. If you do this search:

    https://support.searchandfilter.com/forums/search/save_post+add_action/

    There are posts with code snippets that might help you take the three location bits of data from the array and save them into separate ACF fields, for use with our plugin.

    Chris Parker
    #196331

    Thanks for your help with this Trevor. Much appreciated.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘ACF city-selector field’ is closed to new replies.