Forums Forums Search & Filter Pro Search on search results page not working + more

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #205382

    Hi Trevor,

    Have a couple of issues that I’m unable to work out.

    RE-SEARCH ON SEARCH RESULTS
    Am running filters over a CPT using the custom method: $args['search_filter_id'] = 1441;. This is working well when redirecting from another page to the search results page. However, I would like users to be able to search again on the results page. Is this possible? What have I done wrong? The URL for these pages are:

    http://www.awgpathways.com.au/test/
    http://www.awgpathways.com.au/test-results/

    ADD NO RESULTS COMMENT
    I would like to add a custom ‘no results’ message – have searched documentation and support but cannot find where to update this. Please help

    CONSOLE ERROR
    I’m getting the following console error in chrome on all pages the script is loaded on. Maybe this has something to do with the above?

    search-filter-build.min.js?ver=2.4.6:1 Uncaught TypeError: Cannot read property 'swing' of undefined
        at search-filter-build.min.js?ver=2.4.6:1
        at Object.1../includes/fields (search-filter-build.min.js?ver=2.4.6:1)
        at n (search-filter-build.min.js?ver=2.4.6:1)
        at t (search-filter-build.min.js?ver=2.4.6:1)
        at search-filter-build.min.js?ver=2.4.6:1

    And this one on Firefox:

    TypeError: t.easing is undefined[Learn More] search-filter-build.min.js:1:1677

    [1]</< http://www.awgpathways.com.au/pathways/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6:1 [1]< http://www.awgpathways.com.au/pathways/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6:1 n http://www.awgpathways.com.au/pathways/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6:1 t http://www.awgpathways.com.au/pathways/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6:1 <anonymous> http://www.awgpathways.com.au/pathways/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6:1

    Trevor
    #205402
    This reply has been marked as private.
    Anonymous
    #205427
    This reply has been marked as private.
    Trevor
    #205449

    It is those javascript errors that is stopping it from working. I think it is this file being loaded that is the issue:

    https://code.jquery.com/jquery-3.2.1.slim.min.js

    Anonymous
    #205569
    This reply has been marked as private.
    Trevor
    #205597

    If you look in the Search and Filter pro plugin folder, you will see a templates sub-folder. Look at the exemplar results.php template that shows how to structure the loop so that there is a No Results message.

    Anonymous
    #205674
    This reply has been marked as private.
    Trevor
    #205712

    Try changing the Ajax Container from #main to #projects

    Anonymous
    #205792

    Hi Trevor – thanks for pointing me in the right direction. I turned off ajax all together and am now able to search via the search results page. Also worked out the Nothing found statement.

    Thx

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