Forums › Forums › Search & Filter Pro › Unwanted reset on no results
Tagged: No results
- This topic has 6 replies, 2 voices, and was last updated 5 years, 12 months ago by Anonymous.
-
Anonymous(Private) November 9, 2018 at 1:40 pm #193376
Hi,
I’ve got a form on this page: http://noesteprojecten.nl/lumenswerkt/aanbod/
I’m noticing that the form seems to reset when there shouldn’t be any results. Per example: if I use the search box and type something like ‘fgsdafegre’, no results should be shown. Instead, ALL results are shown.
However, it’s not possible to use the other filters anymore, looks like they’ve been updated with the correct results. Also, when refreshing the page, no results are shown (as should be the case).
I don’t understand what’s causing this problem, any help would be greatly appreciated.
Anonymous(Private) November 9, 2018 at 2:38 pm #193387Hi Trevor,
I’ve almost completely stripped the theme to find out what could cause the problem, but even when the code for the page is just this, the problem surfaces:
<?php wp_head(); ?> <div class="container"> <div class="row"> <div class="col-xs-12"> <h3>Filters</h3> <?php echo do_shortcode('[searchandfilter slug="aanbod"]'); ?> </div> </div> <?php if ( have_posts() ) : ?> <div class="row overzicht-aanbod" id="aanbod-results"> <?php while ( have_posts() ) : the_post(); echo get_the_title(); endwhile; ?> </div> <?php else : ?> <div class="row overzicht-aanbod" id="aanbod-no-results"> <div class="col-xs-12"> <p>Geen inhoud.</p> </div> </div> <?php endif; ?> </div> <?php wp_footer(); ?>
I’ve also disabled all plugins except for Search & Filter itself, but to no avail. I can’t switch to another theme as the used post type and taxonomies are built-in in the theme.
For now I think there’s some problem with S&F settings or a bug in the plugin.
Anonymous(Private) November 9, 2018 at 3:45 pm #193411OK, since our company didn’t create this theme and it’s going to be renewed in a while, we’re going to rewrite some things so we can use the shortcode way.
Usually I would like to know what the exact problem is, but for this project I’ve got no time to figure that out.
-
AuthorPosts