Forums › Forums › Search & Filter Pro › Pagination does not work after applying any filter
Tagged: pagination
- This topic has 12 replies, 2 voices, and was last updated 7 years, 11 months ago by
Anonymous.
-
Trevor(Private) October 2, 2017 at 7:42 am #134187
Has you changed something? I tried a filter at random (subgenres: Adventure) and got 3 pages of results with pagination working fine?
I do see another issue; that your results template is picking up the post title of the first result on each page as the browser window/tab title.
You would need to either edit the template you are using, or make a copy and edit that.
Anonymous(Private) October 2, 2017 at 7:58 am #134191A. Ah yeah – I initially tried updating the title with the method specified here but wasn’t able to get it to work correctly. What would I need to do as far as editing the template?
B. And I’m still seeing the issue – I’ve have clearned my browser cache and everything just in case. I’m using Google Chrome browser, and I know a user reported the issue on FireFox browser. Here are exact steps I’ve used to repro:
1. Clear Google Chrome cache & close browser.
2. Re-open Google Chrome.
3. Go here. http://scarehunt.com/
4. As a non-logged-in user (or a logged-in user), apply “subgenre” filter, “Adventure”
5. Scroll to the bottom of the page, and click page 2 on the pagiation bar.Result: Nothing Happens.
C. As a workaround, I tried using using the Ajax infinite load, but on mobile I saw duplication in my results (mobile only). I also saw duplicate “loading” images.
Trevor(Private) October 2, 2017 at 12:53 pm #134269I tracked it down to a javascript issue. I think.
In the Search & Filter settings the chosen combobox script was set, so I have now changed this to Select2 (a better script anyway).
If I disabled that chosen script, the pagination works.
BUT, even after I clear (or even deactivate) the WP Fastest Cache plugin cache, your page is still loading that script, and not the Select2 script. That suggests that your server is has another cache?
Anonymous(Private) October 2, 2017 at 1:23 pm #134283Hm – I definitely like the Select2 script better but I opted not to use it because it doesn’t quite work right on mobile (deploys the keyboard which blocks the user from making selections, and also stays on the screen even after the menu is closed).
I haven’t configured server side cacheing but not sure if it exists by default.
It sounds like the path of least resistance may just be to use the other script with infinite scroll so pagination isn’t a concern.
Anonymous(Private) October 3, 2017 at 9:01 am #134469I’ve tried the various methods, and all have resulted in the same thing. It works perfectly on desktop, but on mobile, the first search (only the first search) results in duplicated results. After that, the results no longer duplicate. I saw this same issue when I tried:
– “article” as the post / result selector, but no infinite scroll container.
– “div.post-lists” as the infinite scroll container, but no post/result container.
– “article” as the post / result selector & “div.post-lists” as the infinite scroll container.Any help would be very much appreciated.
Thanks!
-
AuthorPosts