Forums Forums Search & Filter Pro Taxonomy filter fails

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #100206

    The issue can be seen on this page:
    https://www.canincentives.com/grants/

    When I use the search and type in “gr” the search result is correct. However, when I select either of the 2 taxonomies of province or industry, the result is an error. Why?

    Trevor
    #100216

    This is because the theme template for the search results page is checking to see if the Search box is empty, and if it is, giving the error. If the template is search.php or similar (from the theme), make a copy of this and call it something like sandfsearch.php and edit it look for a line like this:

    Replace:

    <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>

    With

    <?php if ( have_posts() ) : ?>

    and then in the As an Archive setup change the template name accordingly.

    The code may be different (it varies from theme to theme), so by all means grab the line that you think it might be for me to advise.

    Anonymous
    #100220

    Spectacular – worked like a charm!

    Thanks Trevor

Viewing 3 posts - 1 through 3 (of 3 total)