Forums › Forums › Search & Filter Pro › Set up two search forms the same way – one is not working
- This topic has 15 replies, 3 voices, and was last updated 6 years, 3 months ago by Ross.
-
Anonymous(Private) July 23, 2018 at 2:47 pm #183171
I’ve set up two different search forms with the same parameters except for the post type to search and display URL and container. This page seems to work fine:
https://newdemisto.wpengine.com/news/
Search for “Gold” for a good example.
On this page:
https://newdemisto.wpengine.com/resources/
if you search for anything (try “AWS” or “video”), you seem to get the full list of all posts in the site ordered by date. Any search gives the same results.
Anonymous(Private) July 25, 2018 at 4:52 am #183384The only difference I can see is that the page that is not working has that sticky posts block physically between the search block and the posts block that we want to search. That is why I added an ID to the posts block that we want to search so we can target it for the results.
Both pages are using the Elementor Post Extras widget.
Anonymous(Private) July 25, 2018 at 3:36 pm #183502This is the code I end up with. Maybe I didnt’ understand your instructions:
[searchandfilter id=”3697″]
[searchandfilter id=”3697″ action=”filter_next_query” skip=”1″]This code seems to add all the posts to the wrong posts extra widget — the one that is set up to show just the sticky posts. I still have the Display Ajax Container set to the ID for the second posts extra widget — the one I want to search. The second widget is still not showing search results.
I can’t leave the page set this way, so I’ve moved it to staging:
http://newdemisto.staging.wpengine.com/resources/same login info.
You can see that it takes a really long time to load the page as all the posts are loaded into that first widget that is intended for the 6 sticky posts.
Thanks for your help.
-
AuthorPosts