Forums › Forums › Search & Filter Pro › 2.02 breaks pagination on results
Tagged: pagination, search
- This topic has 11 replies, 3 voices, and was last updated 8 years, 11 months ago by Ross.
-
Anonymous(Private) October 29, 2015 at 10:35 pm #28589
Pagination with 1.43 was working just fine. We’d get a page of results (Woocommerce products), and you could select any page of results you needed. Example URLS (which I must say, do look a bit weird — what is the #038; then the repeated tag? — but they worked):
The first page:
http://—–.com/?sfid=1791&_sft_product_tag=beige#038;_sft_product_tag=beige
The third page:
http://—–.com/index.php/page/3/?sfid=1791&_sft_product_tag=beige#038;_sft_product_tag=beige
Now, with 2.02, this is the first page:
http://—–.com/?sfid=1791&_sft_product_tag=beige
And page 3 doesn’t work:
http://—–.com/page/3/?sfid=1791&_sft_product_tag=beige
In 2.02, all of the pagination links on every paginated results page are directly back to the first page, and putting the correctly paginated URLs in manually (like the one just above) always returns the first page of results. Putting in a URL from 1.43 into 2.02 also doesn’t work – it returns the first page of results.
This site is on IIS, and the rewrites weren’t done correctly when the site was setup which is why you see index.php in the first set of results. Notably, there is no index.php in the 2.02 results, but adding that still doesn’t work. Nothing in the URL structure on the site has changed otherwise.
I had to downgrade to get this working again. My guess is there’s an error in the wp_query(), I think this is a symptom of that, otherwise it could be an issue with IIS not liking something that’s changed.
Ross Moderator(Private) October 30, 2015 at 10:21 am #28607Hi Johnny
Would you be able to provide a link?
Basically, S&F 2.x doesn’t use the regular
page/3
etc – it modifies the pagination and usessf_paged=3
instead.This is to avoid http redirect etc when using regular wordpress pagination.
Thanks
Anonymous(Private) November 12, 2015 at 10:39 pm #29748Is there a solution for this? I seem to be having the same problem (links in the pagination area don’t get the sf_paged=3 appended) I am using version 2.0.3 with post-type archive, custom template and no AJAX. Single search/filter form in sidebar on a single cpt. The archive template (which I am pointing to in the plugin admin, also using this location as custom url) paginates fine (goes to page 2 and 3 etc) but when filter or search selections are made the pagination no longer works. Since it is using the same file for display I am not sure why.
Thanks in advance for any advice. Posting here because it seems related but will start a new thread if you prefer.
heather
Anonymous(Private) November 12, 2015 at 10:51 pm #29752Hi Heather —
Sounds like that’s the same problem I’m having. I was hoping it was fixed in 2.0.3. I had left the plugin active for him to take a look, but had to revert to the previous working version (1.4.5 I think) before Ross could take a look so I don’t think it’s been directly addressed.
The fact the archive page is working fine ordinarily is probably because it’s using WordPress’ own pagination, but when you filter or search the custom pagination kicks in and it’s broken.
Your setup sounds just like mine, are you using a Windows IIS server by any chance or is it Linux? If you’re using IIS, I’m guessing that’s the issue, which would explain why no one else is experiencing this… very few people run WP on IIS.
john.
Anonymous(Private) November 12, 2015 at 10:57 pm #29753Hi John,
I’m on Linux as far as I know – shared DreamHost account. And I have custom archive for this content type with numerical page navigation (using code direct from here: https://codex.wordpress.org/Function_Reference/paginate_linksThe odd thing is this was working before I am pretty sure but I needed to remove my custom query to be able to use this file to serve all the search and filter results. I may have removed too much.. and replaced with a simple <?php if (have_posts()) : ?> to get it to work with the new S&F set up.
Hoping you find a solution and that I do too 🙂
heather
Ross Moderator(Private) November 13, 2015 at 12:19 am #29757Hi Heather, glad you got sorted in the end.
Johhny, sorry for the delays, I know you’ve been patient on here and allowed me to close off a bunch of tickets.
Happy to slot in a time we can go through this together – I’m on UK time so its just gone midnight (same time as these forums report) – I can be available in the later afternoon, say 3pm – 6pm?
Otherwise we’ll have to test next week.
Thanks
-
AuthorPosts