Ross
Forum Replies Created
-
Ross Moderator in reply to:
default sort(Private) June 13, 2014 at 6:31 pm #1512Thanks Adrian I saw that..
I had one idea (but its a bit of a messy workaround to me) to get the default sort working.. ๐
Basically, submit your form with no parameters selected except the sorting that you want, then copy and paste the URL of the results (and use this for linking to the search form ๐ )
Does that work?
Ross Moderator in reply to:
Search result problem(Private) June 13, 2014 at 6:28 pm #1510Hey Raf (unrelated to your post just now), did you notice I moved your last comment in to its own thread?
https://support.searchandfilter.com/forums/topic/moved-search-result-problem/
Ross Moderator in reply to:
default sort(Private) June 12, 2014 at 3:47 pm #1488Hey Adrian thanks for the headsup..
Let me have a think about the rest, there might be a workaround.
Can you add this to the feature requests section?
https://support.searchandfilter.com/forums/forum/search-filter-pro/feature-requests/
Thanks
Ross Moderator in reply to:
the filters gives no result(Private) June 12, 2014 at 3:40 pm #1487Hey Edwin, marking as resolved due to inactivity, let me know if this is still not resolved.
Thanks
Ross Moderator in reply to:
Combo box with auto text only looks at parents(Private) June 12, 2014 at 3:39 pm #1486Hey Ken I’m still not seeing this, can you give me spec of your setup so I can try to recreate?
Thansk
Ross Moderator in reply to:
How to add a loading gif?(Private) June 12, 2014 at 3:38 pm #1485Hey Bernard
Unfortunately this did not make the cut for todays update – right now you can’t customise what happens when loading (only content fades out) but I will be adding in JS events soon so you can detect when loading starts/stops so you can apply your own styles/loaders etc..
Does this sound like something that would work?
Then you would just do something like this in your themes JS file:
$('.searchandfilter').on('beginajax', function(){ //show custom loader }); $('.searchandfilter').on('endajax', function(){ //hide custom loader });
Ross Moderator in reply to:
auto text box with multiple choice(Private) June 11, 2014 at 9:37 pm #1474This reply has been marked as private.Ross Moderator in reply to:
auto text box with multiple choice(Private) June 11, 2014 at 9:36 pm #1473No worries ๐
Ross Moderator in reply to:
default sort(Private) June 11, 2014 at 6:26 pm #1470Hey Adrian
There is not a way to do that currently… I will include this in a future update but not quite sure how long just yet.
Take a look at my note here – https://support.searchandfilter.com/forums/topic/results-showing-from-excluded-categories/#post-821
If you want to set any default behaviour for the search form then you will need to hook in to
pre_get_posts
and order the results yourself.Something like:
function order_results_default( $query ) { global $sf_form_data; if ( $sf_form_data->is_valid_form() && $query->is_main_query() ) { //order results $query->set('orderby', 'title'); $query->set('order', 'ASC'); } } add_action( 'pre_get_posts', 'order_results_default' );
You can find the different parameters available here – http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
๐
Ross Moderator in reply to:
How to add a loading gif?(Private) June 11, 2014 at 10:51 am #1457Hey Bernard
I’m going to hold fire on replying to this because I am hoping to do an update today which should help make this a bit easier..!
Will update you later on.
Thanks
-
AuthorPosts