Geo Directory search by keywords forgets the selected category

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

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

Open Support Ticket
  • Author
    Posts
  • #192633

    sathish kumar
    Expired Member
    Post count: 4

    Hi,

    I have a demo installation of WPGeoDirectory. I have tried to create a few sample places in the system and all worked fine. I assigned a couple of places i had created to a couple of categories. Now, on the website, when i select a category it is loading all the places under the category which is also good. But, when i try to use some name of a place that i had created but not assigned to the category that i have selected, the system forgets about the category that i have selected and goes about searching for the place based on the name and loads it. Technically, when i search for a place under a selected category, i would expect the system to do a search under the category. Am i right?. If so, is the WPGD plugin having any bug?

    #192764

    Kor
    Moderator
    Post count: 16516

    Hi Sathish,

    Using the “Advanced Search Filters Addon” will allow you to search under a specific category and not show results from other categories. Here’re some guides you may follow https://wpgeodirectory.com/docs/search-filters-overview/ . Let us know how it goes.

    Thanks!

    #193428

    sathish kumar
    Expired Member
    Post count: 4

    Guys, It did not work. I did not add too many records into the directory. Just used your sample data populating tool to add and even the categories were ur sample categories. But when I created a new place under a specific category called “Festivals” and then when I chose the “Restaurants” option from the links on the top of the page, it shows all the restaurants as populated by your sample data. Now, when I search using keywords and type the name of a place that I created and that is not assigned to the “Restaurants” category , the site forgets about the category filter and searches for the name and lists it.

    When I search by restaurants, the URL is “http://wpgdtrial.localtest.me/places/restaurants/”
    When I search by festivals, the URL is “http://wpgdtrial.localtest.me/places/festival/”
    When I search by restaurants and they type keyword “pvsat” for searching, the URL changes to “http://wpgdtrial.localtest.me/?geodir_search=1&stype=gd_place&s=pvsat&snear=&sort_by=&sgeo_lat=&sgeo_lon=”

    The URL must remain as “http://wpgdtrial.localtest.me/places/restaurants/?geodir_search=1&stype=gd_place&s=pvsat&snear=&sort_by=&sgeo_lat=&sgeo_lon=”
    when I click the search button. I tried to manually change the URL to the above one and the result is fine, i.e it is not able to find PVSAT under the places/restaurants. But your search button is somehow hardcoded to forget the category selection. Guess it is a bug or I must be knowing some setting to be enabled / disabled somewhere..

    #193544

    Guust
    Moderator
    Post count: 29970

    The search will never remember what you search before. If you do a new search, you will get new results.
    You need to add a custom search as per the link posted by Kor: https://wpgeodirectory.com/docs/search-filters-overview/#filter

    Then you can choose to search within a particular category only.
    Here is an example: https://wpgeo.directory/

Viewing 4 posts - 1 through 4 (of 4 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