Tagged: Filters Widget searching keyword
March 2, 2020 at 4:54 pm #24332
The WP Travel Filters Widget seems to only be searching the Title of the trips when searching by Keyword, instead of also including the travel_keywords taxonomy in its search.
For example, currently when a user searches for “Natural Park” in the Keyword field of the widget, only trips with “Natural Park” in the title are being returned, and not any of the trips with “Natural Park” or “Natural Parks” keyword taxonomy attached to it.
Is there a way to fix this in the plugin/theme settings or in the code?March 3, 2020 at 6:26 am #24346
Actually, the keyword used in WP Travel Filters Widget to search the trip is the keyword that has been assigned to the trip.
You can add the keyword that is most searchable following the path Admin Panel > Trips > Keywords. Also, you will be more clear referring the screenshot given below:
Also, you can add keywords from the individual trip page(edited) as the screenshot given below:
For detail assistance regarding WP Travel Filter Widget, please refer to the link below:
Hope this helps.
If you have further queries, let us know.
Thank you.March 3, 2020 at 2:28 pm #24358
I really don’t think it is searching the Keyword. Here are some screenshots to prove it:
Inside the admin, when editing the trip:
As you can see, since “National Parks” is present in the trip type AND keywords, it should show up when searched. Alas, only “National Park” gets returned when searched, because it is only checking trip Title and Content. Here’s another example of what I’m talking about:
This post also ONLY shows up when “Natural Park” is searched, not when “Natural Parks” is searched. As you can see, “Natural Parks” is present in the Keywords and the Trip Types, but is not present in the Title or Content. “National Park” IS in the content, which is the only reason it is showing up when I search the singular version of “National Park”.
Here are 2 more screenshots, to show the search is behaving as I described:
Please advise. Thanks.March 4, 2020 at 6:38 am #24374
Actually, everything is working fine regarding searching for trips using the keyword.
But the issue you have reported has been raised due to the keyword you have used for the trip i.e National Park. You have to use a single word as a keyword for the trip. The feature to add keyword with white space(National Park) is not available for now. So, please use a single word keyword for the trip and verify the issue.
If the issue still persist, let us know.
Thank you.March 9, 2020 at 4:39 pm #24496
The issue still persists. I have gone and modified the tags to not contain white spaces, but the search is still failing. See the screenshots below:
As you can see, NaturalParks and NaturalPark have both been made a 1-word tags in the back-end, but when searching “National Parks” in the front-end search it still doesn’t get returned.
We can deal with having no-whitespaces in the backend keywords, but expecting the users to have to search “NationalParks” with no white spaces is simply un-intuitive and no user is going to realize they have to search that way.
We are going to need to find a solution for this. Any UX designer worth their salt would consider this widget broken, and we can’t accept “don’t use whitespaces” as an answer.
March 10, 2020 at 8:57 am #24511
- This reply was modified 2 weeks, 5 days ago by okeefe. Reason: linked to wrong example images, updated the link url
We would like to apologize for the trouble.
Regarding your second query, in the screenshot, you can see the keyword has the white space so it is raising the issue. You have changed the keyword in backed but while searching you have used the keyword with the white space.
So make sure you searched using the correct keyword so that you will get the correct search result.
Let us know if that works or not?
Thank you.March 10, 2020 at 1:50 pm #24519
Yes, I am searching with a white-space because EVERY user is going to put a space in-between the words when they’re searching. Using spaces is normal user behavior (AsPeopleDontNormallyWantToTypeWithoutSpaces… see?) and I consider this plugin VERY broken if it is not accepting White Spaces in the search.
So when you say “Actually, everything is working fine regarding searching for trips using the keyword”, you are telling me that you guys consider a broken search widget acceptable for a production website? When people buy a plugin or theme, they expect that all the advertised functionality will ACTUALLY WORK.
We need a solution for this search issue. If you can tell me where in the code I can make edits to your incomplete Search function, that would at least be a start.
Thanks.March 11, 2020 at 4:39 am #24531
Yes, the user may search the keyword as you have mentioned but as for now the plugin does not allow the white space.
However, we will make the enhancements on this and release the update soon. We will let you know once we fix the issue.
Hoping for your kind co-operations.
You must be logged in to reply to this topic.