Forums › Forums › Search & Filter Pro › Results per page setting is not respected on first load
- This topic has 10 replies, 2 voices, and was last updated 6 years, 2 months ago by
Trevor.
-
Anonymous(Private) November 12, 2018 at 12:52 pm #193492
I’m using search form in front page using shortcode. Otherwise its ok, but ‘Results per page’ setting is not respected on first load. The search shows all result items instead of the set amount of them.
When I set some filters on in form it works ok, but not at first without filters. Is there a known issue that can / will be fixed or how can I troubleshoot this?
Anonymous(Private) December 3, 2018 at 8:18 am #195093Ok, thanks. I will try to resolve that.
Another anomaly I noticed is when I use the filters with mobile browser. Then after the first submit the Chosen.js enchantment is no longer present and it’s just the default html version of the form. Why is that so? Is this a known issue or something that my site causes?
Anonymous(Private) December 7, 2018 at 7:55 am #195554Thank you, that helped.
I still have one problem with the results sort order. The items are job postings and they have the hiring company as an ACF Post object field. Now, when I try to set the sort option by hiring company using meta value of that field, it is using the ID of the company post as a value, not the title or slug that I would need. Is there a way to achieve that?
Anonymous(Private) December 7, 2018 at 8:14 am #195556Actually I have still one. The client wants to keep the form compact so that the less important filter fields would be hidden initially. I have tried to solve it by adding a button with jquery after dom has loaded and set the filters after that hidden with css. Then I have a jquery toggle()-function with that button to show or hide those filters.
It works ok at first page load, but after the filters have been used once, the button receives two clicks so the toggle() function triggers twice which nullifies the whole thing.
So is the S&F doing something that causes this behavior and if so, is there a workaround for it?
-
AuthorPosts