Search fields
This topic contains 14 replies, has 3 voices, and was last updated by Alex Rollin 4 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: search
-
AuthorPosts
-
November 14, 2019 at 2:25 pm #517136
Our client’s website search at https://www.suitevacations.com/location needs to only display the state and city when searched for. For example, do a search for “Colorado” you will see that “Austin texas” shows up as well. I realize that the word “colorado” is within the details. How can we exclude the details page from showing in the search? We also need that limitation on the top right-hand side search icon as well.
November 14, 2019 at 3:45 pm #517150You could remove the word colorado from the listing in Austin.
The ‘Search for’ field will search in the title/description/category/tags for the search terms and then show any results sorted by relevance.
It appears that you have hidden the near search field, which, if you search colorado, would not have results in texas.
If title/categories/tags contain the info you want to search you could exclude the description field from search with this snippet:
https://wpgeodirectory.com/support/topic/make-the-search-not-to-index-scan-the-listing-description/#post-513159December 3, 2019 at 5:52 pm #519764Can’t the search just search in the City/State field in the database and all other fields are excluded? I tried the things you mentioned above and they do not work. I get erratic results with the code we added sometimes it displays the correct results, other times it wont :/
December 3, 2019 at 5:55 pm #519765Please see the attached screenshot
December 3, 2019 at 6:25 pm #519771hi Evan Caulfield,
Thanks for your reply. I’ve tested your Website by searching the name “Colorado” on your page here https://www.suitevacations.com/location and I’m only getting a single result as shown in the attached screenshot. Could you list the steps to replicate it or did the custom code Alex shared above worked for you?
December 3, 2019 at 6:38 pm #519774I found another issue, please look at the map view here https://www.suitevacations.com/location and ZOOM in on Colorado, you will see 2 locations there, when I click on either of the pins I get an error. Please see the attached. I will PM you access to the site.
December 3, 2019 at 6:41 pm #519777This reply has been marked as private.December 4, 2019 at 8:39 am #519841I do not get that error when I click on Colorado.
I am not sure what you are looking for is ‘search’.
Maybe what you should do is give links to each region/state page so users can see all the contents?
December 4, 2019 at 8:39 am #519842This reply has been marked as private.December 4, 2019 at 4:06 pm #519915Please see these 2 locations:
https://www.suitevacations.com/places/united-states/colorado/vail/resort/aspen-at-streamside
andhttps://www.suitevacations.com/places/united-states/colorado/vail/resort/cedar-at-streamside
Note the listings are “CEDAR” and “ASPEN” at Streamside…BOTH in Colorado
Now search https://www.suitevacations.com/location for “colorado”
“ASPEN at Streamside” is displayed. “CEDAR at Streamside” should also display, but is not!!December 4, 2019 at 4:09 pm #519916Also, search for “vail” these 2 listings do not show. We need to search for City and State. “Vail” is a city thats not showing as well.
December 4, 2019 at 4:12 pm #519918Now search for “idaho” here https://www.suitevacations.com/location
This listing will NOT show up:
https://www.suitevacations.com/places/united-states/idaho/blanchard/resort/stoneridge-resort
What are we doing wrong? We simply want to search “city” and “state”
THANKS for all your help!
December 5, 2019 at 6:43 pm #520139You have removed the Near search field. The Search for field you have exposed is only for searching title/description/categories/tags. If the word colorado is not in one of those fields then the listing will not be returned in the search results.
If you want to search NEAR for cities and states then turn the Near search field back on by removing the custom CSS that has hidden the field.
December 5, 2019 at 10:10 pm #520175Thank you for clearing that up! My developer is sick and not able to make that adjustment. Can you please tell me what line of code to remove and where I would do that?
December 5, 2019 at 10:31 pm #520186The code is
.geodir-loop-actions-container, .gd-search-field-near { display: none!important; }
In file: https://www.suitevacations.com/wp-content/cache/et/1733/et-core-unified-15754070809581.min.css
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket