Forums › Forums › Search & Filter Pro › Search & Filter 2.0 Update and Questions
- This topic has 23 replies, 2 voices, and was last updated 9 years, 1 month ago by Anonymous.
-
Ross Moderator(Private) October 8, 2015 at 3:23 pm #26853
Ok, so your issue with pagination and a bunch of stuff not working is because you didn’t fill in the results url…
Please see the docs on how to set this up properly:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
I’ve gone ahead and put this in for you.
So now, bookmarkable urls, and pagination should work correctly.
The next issue is you are using the same taxonomy multiple times.
This is in the docs.. here you will also find instructions on adding new fields the right way:
Thanks
Anonymous(Private) October 9, 2015 at 6:05 pm #26974Ross i did almost everything š hide empty fields…so easy š
So right now i need only that part…. you already say that to me… where i place this:
“3) This is not an option just yet in S&F however Iām thinking of adding this in the admin, but its really not too difficult to implement.
What you would need to do is hide the div initially with CSS ā which would be either .search-filter-results or #search-filter-results-1234
This means your results would start off hidden.
Then you would need to display the results after a search has been performed by the user ā you can do this with JS by attaching an event listener to detect when a search has completed:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
//detects the start of an ajax request being made
$(document).on(“sf:ajaxstart”, “.searchandfilter”, function(){
console.log(“ajax start”);
});//detects when the ajax request has finished and the content has been updated
// – add scripts that apply to your results here
$(document).on(“sf:ajaxfinish”, “.searchandfilter”, function(){
console.log(“ajax complete”);
//so load your lightbox or JS scripts here again
});//an event fired when S&F is initialised and S&F scripts have been loaded
$(document).on(“sf:init”, “.searchandfilter”, function(){
console.log(“S&F JS initialised”);
});
view rawsf-pro-ajax-events.js hosted with ā¤ by GitHub
What you would need to use is the Ajax finish event, and there you would use jQuery to show your results again.Thanks”
-
AuthorPosts