Forums › Forums › Search & Filter Pro › 2 search results – same template, only one working
- This topic has 11 replies, 2 voices, and was last updated 4 years, 10 months ago by Trevor.
-
Anonymous(Private) January 10, 2020 at 4:56 pm #230742
Hi,
Here is my issue: https://www.youtube.com/watch?v=WesAiWLIQas&feature=youtu.be
2 results list + 2 templates (one per ID). Only one is working at the same time.
Anonymous(Private) January 12, 2020 at 4:58 pm #230834“I can see what you are doing. You have on the page two archives which are S&F form Results shortcodes. The forms themselves are being used only to pre-filter, with no actual form.”
> Correct
You are using custom results.php files (numbered the same as the forms). If using the standard results.php template for both results, there is not an issue?
> It works with the default listing.
If form #780 uses the standard results.php, but form #781 uses the custom one, it works?
> It does.
If form #780 uses the custom results.php and form #781 uses the standard results.php, what happens then?
> It does NOT work.
I’m using the default loop “while ($query->have_posts())” and then using filters to remove some of the results with get_field. That’s why I’m not using any limist to the results (they list from 105 to 300 results).
If both results are using a custom result.php, the second (781) is not even going into the “if ($query->have_posts())” loop.
-
AuthorPosts