Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Search on search results page not working + more
Tagged: cpt, custom method, custom post type, No results, search results
- This topic has 8 replies, 2 voices, and was last updated 5 years ago by Renee Martin.
-
Renee Martin(Private) March 18, 2019 at 1:47 am #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 helpCONSOLE 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 Moderator(Private) March 18, 2019 at 11:25 am #205449It is those javascript errors that is stopping it from working. I think it is this file being loaded that is the issue:
Trevor Moderator(Private) March 19, 2019 at 9:39 am #205597If 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.
Trevor Moderator(Private) March 20, 2019 at 12:32 pm #205712Try changing the Ajax Container from
#main
to#projects
Renee Martin(Private) March 21, 2019 at 3:40 am #205792Hi 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
-
AuthorPosts
The topic ‘Search on search results page not working + more’ is closed to new replies.