search by zipcode

This topic contains 19 replies, has 3 voices, and was last updated by  Guust 8 years, 10 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #114998

    wasanajones
    Buyer
    Post count: 180

    how do we setup search by zipcode using shortcodes?

    I’d like to have a search shortcode that allows searching for category, subcategory, and tag by dropdown with text entry for zipcode, city, state, tag, and keyword

    Using 3rd-party search plugins like Search and Filter finds the categories as a dropdown and sends users to the GD category listing page, but entering the zipcode in keyword search for an existing listing gets no results

    entering zipcode in keyword for default geodirectory search gets no results

    completely lost in trying to produce a simple search box

    #115000

    Guust
    Moderator
    Post count: 29970

    Since ZIP notes a location, searching for a ZIP code in the Near field should yield the results you are looking for.
    The shortcode would be just the one for the GD Search widget:
    https://wpgeodirectory.com/docs/core-shortcodes/#search
    Searching for category is added with the Advanced Search filter, and tags are searched in the keyword search field.
    https://wpgeodirectory.com/docs/core-design/#how

    #115005

    wasanajones
    Buyer
    Post count: 180

    Hi – thanks for fast response.

    entering the zipcode in the ‘near’ field does in fact find listings. where do we edit ‘near’?

    the shortcode [gd_advanced_search] does not produce a list of categories – it produces four things
    CPT
    keyword
    near
    search button

    no option to list categories and subcategories in the search box?

    #115179

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you need to set the category field as an advance search filter.

    Let us know if this helps.

    Thanks

    #115182

    wasanajones
    Buyer
    Post count: 180

    how do you do that? no setting I can find in Geodirectory > Advanced Search or in the Category editor

    #115183

    Paolo
    Site Admin
    Post count: 31206

    GeoDirectory >> Place (or other CPT) settings.

    Double click on the catgeory field, scroll down to the bottom and enable it as a filter.

    Now in Advance Search tab the new filter will be availble for use.

    Thanks

    #115236

    wasanajones
    Buyer
    Post count: 180

    thanks, but…

    is there a way to force the ‘customize my search button’ to be default open? and to hide the button?

    #115237

    Paolo
    Site Admin
    Post count: 31206

    Yes in the search widget you have that option.

    Thanks

    #115243

    wasanajones
    Buyer
    Post count: 180

    also where can we edit the fields (instead of ‘near’ I’d like to say something like zipcode or city)

    thanks

    #115245

    Paolo
    Site Admin
    Post count: 31206

    GeoDirectory >> Design >> Search >> Search form default text settings.

    Thanks

    #115505

    wasanajones
    Buyer
    Post count: 180

    thanks

    another ‘quick question’

    in the ‘near’ field, if I enter City AND Region (ie. Rugby, North Dakota) it gives me results.

    if I enter just the city Rugby – no results, if I enter the region North Dakota – no results

    with Search Autocompleter enabled it will find these locations but requires clicking the autocomplete link and it takes some time to get results (even without the thousands of locations I’m going to be adding)

    am I missing a setting somewhere that will get it to recognize the Text entry of the city OR region?

    thanks

    #115674

    Guust
    Moderator
    Post count: 29970

    Have a look here: https://wpgeodirectory.com/docs/core-design/#how

    I guess if you entered “Rugby, North Dakota”, listings around the center of that city were shown.
    When you entered “Rugby”, listings around the center of Rugby in Tennessee or Rugby in England or …
    When you entered “North Dakota” it looked for listings near McClusky maybe, ie near the center of the state anyway.

    If you select one of the autocomplete suggestions, you will actually get all listings IN the selected location, not NEAR the center of your location.

    #115685

    wasanajones
    Buyer
    Post count: 180

    I have a few dummy data listings using Rugby, North Dakota address

    when I enter only ‘Rugby’ I get no results,
    if I enter only ‘North Dakota’ I get no results … the how GD works page says it should give me results but it doesn’t

    if I enter Rugby, North Dakota I do get results – so the city and the region locations exist

    with autocompleter enabled you have to click the autocompleter link – not the end of the world but it is clunky and takes some time

    the question is — my search is not functioning as it is explained https://wpgeodirectory.com/docs/core-design/#how

    is there a multilocations setting or something?

    thanks

    #115688

    Guust
    Moderator
    Post count: 29970

    Can you explain why you think your search is not functioning as it is explained at https://wpgeodirectory.com/docs/core-design/#how ?
    It seems to do exactly what it says there as you describe it.

    #115710

    wasanajones
    Buyer
    Post count: 180

    If you enter California, you will get listings somewhere in the Sierra National Forest.

    I enter North Dakota (a state similar to California only colder, smaller and less cool) and get no results even though there are listings for places in North Dakota

Viewing 15 posts - 1 through 15 (of 20 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount