Forums › Forums › Search & Filter Pro › Unwanted reset on no results
Tagged: No results
- This topic has 6 replies, 2 voices, and was last updated 6 years, 8 months ago by
Anonymous.
-
Anonymous(Private) November 9, 2018 at 2:38 pm #193387
Hi 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