Drill down search category locations for global directory

This topic contains 6 replies, has 2 voices, and was last updated by  Guust 7 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #280058

    ali russell
    Expired Member
    Post count: 4

    Hi,
    I am a recently-arrived newbie to GD, so apologies if my question has been answered elsewhere but I have searched and can not find the answer.
    I am building a global directory and I would like the search form to include the option to limit the resulting listings by continent / country / region. I realise I could do this ‘manually’ through place settings > custom fields, but since the listing has already input its address this seems repetitive to ask them to repeat this information in custom fields.
    Is there anyway to adapt the search form (as opposed to customise the search results) to include a drill down on location based on the address already input in the listing information?
    Thanks so much
    Ali

    #280308

    Guust
    Moderator
    Post count: 29970

    Hi Ali

    You can use the location switcher and the Advanced Search addon.

    The location switcher allows visitors to drill down by location, see https://wpgeodirectory.com/docs/multilocations/#main

    The Advanced Search has a setting that will suggest any of the locations in your database in the Near field: GD > Advanced Search > Near Autocompleter Settings

    #280326

    ali russell
    Expired Member
    Post count: 4

    Hi Guust,
    Thanks so much for the speedy response.

    I think the locations switcher is the answer to my problem, but as I understand how it works out of the box, the ‘change location’ option (1) appears in the top menu, (2) allows the selection of only a single ‘country’ or a single ‘region’ within a country and (3) repopulates the map immediately in response to each selection.

    I would prefer a set-up where (1) the specification of location occurs as part of the search form and not in the top menu, (2) the user can select multiple locations and (3) the repopulation of the map waits until the user is finished specifying what they are looking for.

    For example, if a user is looking for a seaside hotel (category) in Spain or Portugal, can i set up the search form so that they are able to specify these criteria and then endure only a single wait for map repopulation / search results ?

    Thanks so much once again for your help!

    #280423

    Guust
    Moderator
    Post count: 29970

    Sorry, but that is not possible.
    You can search for a seaside hotel without specifying a location, and all seaside hotels will be returned, but you cannot select more than one country, unless you want results in all countries.

    The switcher can be added as a shortcode to anywhere else you like, see https://wpgeodirectory.com/docs/location-manager-shortcodes/

    #280437

    ali russell
    Expired Member
    Post count: 4

    Hi Guust,

    OK. Shame about the multiple countries, but I guess its not the end of the world. What your really saying I guess is that the user has to use the map to fine tune their search to multiple contiguous countries…

    However, I still need to understand how I can customise the search widget. Currently my search form appears offering (1) a dropdown of CPTs (2) a text search field and (3) the ‘near’ field before the SEARCH button, and then a ‘cutomise my search’ button after the SEARCH button.

    I would like to be able to offer (1) a dropdown of CPTs (2) a dropdown of categories that responds to (1), and (3) the ability to add in some of the custom fields that respond to the CPT… all before the search button.

    I am really sorry to be so stupid. I am sure that customising the search widget is is a very basic request, but I simply can not find out where and how to do this and to make the customisations I am looking for.

    Thanks in advance for your help once again!

    #280438

    ali russell
    Expired Member
    Post count: 4

    Sorry Guust.. forgot to be specific above in that i really do not want the text ‘search for’ field or the ‘near’ field in my search form. I have a nasty suspicion you are going to tell me that I have to have at least the first of these, but I really just want the user searching by CPT / category / custom field specifications…

    please can you let me know what is and what is not possible and how to make it happen ?!

    #280522

    Guust
    Moderator
    Post count: 29970

    1. You need the CPT dropdown if you have more than one CPT, only one CPT can be searched at the same time.

    2. You can hide the “Search for” field with CSS. That means that no keyword will be searched for in the title, description, category or tags. See also https://wpgeodirectory.com/docs/core-design/#how

    3. You can hide the “Near field” with CSS. That means every search will search all over the world at the same time, unless the visitor has selected a location already from the location switcher.

    4. You can add any custom field to the “Customize my Search” button, see https://wpgeodirectory.com/docs/search-filters-overview/#filter
    So you can add a dropdown of categories that way, example at https://wpgeo.directory/hotels/

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket