Forums › Forums › Search & Filter Pro › Can’t search on the search results page
- This topic has 22 replies, 3 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) March 18, 2020 at 12:58 pm #237061
It sounds like we have exactly the same problem as this thread:
https://support.searchandfilter.com/forums/topic/cant-search-on-the-search-results-page/
This is the home page: https://sciencejournalforkids.org/
If you search for “Elementary school”: https://sciencejournalforkids.org/?sfid=3562&_sft_reading_level=elementary-school
You get 4 results (that’s the correct behavior).But then if you want to further narrow the results down by selecting Biology, the results don’t change!
Finally, if you take the narrowed down URL and paste it in a new browser: https://sciencejournalforkids.org/?sfid=3562&_sft_reading_level=elementary-school&_sft_category=biology it generates the correct result: 1 article.
Thanks in advance!
Trevor(Private) March 18, 2020 at 3:35 pm #237081I split your message from the other thread so I can address your question directly. You need to create a specific results page and follow this guidance carefully (you must use the Posts module as directed):
You might also benefit from some custom CSS that I can give you after we get it working, to improve the margins and paddings that your theme seems to be adding.
Anonymous(Private) March 20, 2020 at 8:24 am #237309Hi. Yes, that would probably solve the problem.
I’ve had this notice in the Edit Search Form: “Notice: You have not specified a custom template file for your results – this may lead to unexpected behaviour when displaying your results.”
I tried to follow the instructions at https://searchandfilter.com/documentation/3rd-party/elementor/ but I am lost.
For example:
Basic Setup
Add the Posts Grid to your page
–> Do I need to create a regular page, or an Elementor template. If the latter, what type? Page or Archive or something else? Then which widget should I add? There isn’t a widget called “Post Grid”. There is “Posts” and “Archive Posts”.Before the Posts Widget, tell S&F that it needs to filter the grid by adding a Text Area (don’t use a HTML element, shortcodes won’t work properly) and adding our filter_next_query shortcode:
[searchandfilter id=”123456″ action=”filter_next_query”]
–> What do you mean “BEFORE the posts widget”? Also where do I need to add the text area?Sorry, these instructions might be clear to someone with more coding experience. But I need something more basic.
Thanks.
Ross Moderator(Private) March 23, 2020 at 9:11 am #237499Hi Tanya
If the homepage is an archive (the blog archive) then in Search & Filter, you can set the
display method
topost type archive
.I’ve just done this for you and it worked a bit better, but not completely.
I did not realise, but on the home page archive, the
Ajax Container
should be.elementor-posts
, I’ve changed this, and now all seems to work correctly?Thanks
-
AuthorPosts