Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › New password
This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years ago.
- AuthorPosts
- March 3, 2021 at 3:24 pm #31948
This is concerning my previous topic: https://wp-dreams.com/forums/topic/search-results-page-8/
But I could see that my answer to you showed the admin password publicly so I had to change it again. The password given above in the private details is the newest one.
March 3, 2021 at 4:14 pm #31954Thank you!
I disabled the plugin to do a few test and I noticed something very weird. Looks like there is an issue with the search results page itself, as for the same search query it always prints different results:
1. Search “hand”: https://i.imgur.com/YX9adLY.png
2. Search “hand”: https://i.imgur.com/ihzPZ9F.pngUnfortunately this is unrelated to the plugin, since it happens even when it is deactivated.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 3, 2021 at 9:17 pm #31967OK, I understand but this is not happening when you just type in the search query and do nothing (do not hit Enter, I mean) See screenshot.
Then you get the same (good related) results everytime. So that’s working, it just won’t appear on the search results page.
Does that give you any idea how to solve it?Attachments:
You must be logged in to view attached files.March 4, 2021 at 10:02 am #31983Well that is the problem exactly. The plugin tries to send the results to the results page to display the same ones as on the drop-down list. But there is a malfunction on the results page itself, so it has no effect on it whatsoever.
Best,
That is why I disabled the search to make sure it is not related, but even the native results page is showing random results. It completely ignores the search query. The search results page needs to be fixed first, so it respects the search query as it should, then it will resolve this issue as well. I’m afraid I don’t know what the cause is, but it is definitely not the search plugin.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 4, 2021 at 3:47 pm #31999Hi Ernest, thank you very much for pointing that out. I made a new Search Results page in Elementor Theme Builder and now it seems to work as expected: both ways to search give the same good results.
One little thing though is that in the search results every text below the post title (that is on a page, not a blogpost) starts with the words ‘Opleiders Kandidaten Werkgevers Opleiders Kandidaten Werkgevers’ because that is what is being used as navigation on almost every page and is the first content on the page.
Is there a way to get rid of that in the results text (excerpt)?March 4, 2021 at 3:51 pm #32000Neat 🙂
I’m afraid that needs to be handled by Elementor. The plugin has no effect on how the results are displayed. It only changes the query to set which ones to display, but the actual layout is set by the results page.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 4, 2021 at 4:27 pm #32006OK, I understand… but in this case it’s not so much about the layout, that’s fine by me. I’m talking about the elements on the page that are being read by the ASP search query. Because in this case this second ‘navigation’ menu is not set up as a proper navigation menu but as text links they also end up in the search result text (excerpt). See image in the attachment, please.
I was wondering if there is a way to exclude these element, maybe by giving them a dedicated class for example?Attachments:
You must be logged in to view attached files.March 5, 2021 at 10:42 am #32022I’m afraid not possible to do anything there from the search perspective. If it is stored as part of the post content, then it is picked up as text, and the plugin searches it.
Best,
The printing of the elements is entirely up to the results page – including titles, the text content and everything, that is parsed by the results page loop. Maybe if elementor archive widget has a filter to remove sections of the text it could be doable via that.
All this plugin can do is pass the result object IDs to the results page and the rest is handled by the loop – in this case elementor archive widget.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 5, 2021 at 5:30 pm #32055Aha, I see… but is there a way to set the ASP plugin to read only excerpts, not the body text in the post content? That way I could copy all of the body text in the excerpt and get the same good results, I guess.
March 6, 2021 at 8:28 am #32060Sure, you can change what fields to search on the General Options -> Sources panel. For the live results you can also change the primary and secondary title and content fields.
Best,
However the results page layout will not be affected by these unfortunately, that section is still parsed by the elementor widget.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.