Forums › Forums › Search & Filter Pro › Get the results in the same category page
- This topic has 7 replies, 2 voices, and was last updated 7 years, 5 months ago by Anonymous.
-
Anonymous(Private) June 5, 2017 at 10:40 am #113212
Hi!
I’m showing the search form in category.php with:
<?php echo do_shortcode('[searchandfilter id="323"]'); ?>
Problem is, when I select an field (egg. a dropdown), the page reload and show the results on an other category page (default one).
I tried to enable Ajax but it won’t simply work 🙁My question is, is that possible to get the resuslts in the same catagory we are currently seaching?
Thanks in advance.
Anonymous(Private) June 5, 2017 at 3:36 pm #113324Sure!
Here it is:
http://yacht.pushaune.com/category/occasions/Anonymous(Private) June 5, 2017 at 3:49 pm #113330Cheers, it is working!
I had to uncheck this option:
If the user is not on the results page already, the first submit of the Search Form will cause a page redirect.
Still, the url change is not working …
I have: http://yacht.pushaune.com/category/occasions/
Then, when I check an option, it gets me:
http://yacht.pushaune.com/?sfid=123 without category/occasions/Any ideas?
Trevor(Private) June 6, 2017 at 8:58 am #113503Hi
I can see that the form Display Results method is set to
As an Archive
, and this does not support the ‘remain in the category URL’ type of function that you want. I think that thePost Type Archive
method does, but that may not be suitable for you.With the next major release (V3), I think this will be possible, but that is a few months away yet (but we are currently coding it).
If you want the form to detect which category you are in, on the General tab you must check the option
Choose which kinds of pages S&F will try to do this on:
…Tag, Category & Taxonomy Archives
AND add the category/taxonomy to the form so that it can be filled in (even if you hide that field control using custom CSS). -
AuthorPosts