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, 1 month ago by Anonymous.
-
Anonymous(Private) October 1, 2017 at 9:20 pm #134173
Hi there,
Just noticed a bug and was hoping you may be able to assist. Still troubleshooting on my end, but any time a filter is applied, my pagination stops working. So – if you apply a filter, the # of pages updates appropriately; however, if you try to click to page 2 (or any other page), nothing appears to happen.
The pagination does appear to work if the user doesn’t apply any filters. Can you please advise?
Right now, I’m trying to play around with different selectors to see if maybe I should use a different pagination selector in the “display settings” area.
The site where I’m having the issue is: http://scarehunt.com.
Thanks.
Trevor(Private) October 2, 2017 at 7:42 am #134187Has 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.
-
AuthorPosts