Forums › Forums › Search & Filter Pro › Pagination Wootemplate
Tagged: pagination, product archive, woocommerce
- This topic has 44 replies, 3 voices, and was last updated 7 years, 4 months ago by Anonymous.
-
Ross Moderator(Private) June 20, 2017 at 10:45 am #115831
Hi Fredrik
I’ve just back recently and going through a big pile of tickets.
I’ll update as soon as I can.
Best
Ross Moderator(Private) June 22, 2017 at 4:40 pm #116386Ah yes I see the issue.
Your theme is technically doing pagination wrong.
This post explain exactly your issue:https://support.searchandfilter.com/forums/topic/pagination-not-working-properly/#post-108542 Oops wrong post…
The issue you are having (and I highlighted with the guys at beaver builder via email) is the way
base
is created in a pagination functionThis is the correct way:
$big = 999999999; // need an unlikely integer echo paginate_links(array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => $format, 'current' => $current_page, 'total' => $total_pages, 'type' => 'list' ));
I assume your theme creates
base
a different way – often not using the technique where a$big
variable is created, as per the WP docs – https://codex.wordpress.org/Function_Reference/paginate_linksWhat we need to do is modify your themes pagination function, so that it correctly supports having query arguments in the URL – eg
?somefilter=value
Basically your themes pagination would not support any filtering system on this page.
Would you know how to do this? I would start with a child theme, and then overwrite the template where the pagination is located.
I can help with the code required if you can get to that step?
Best
Anonymous(Private) June 22, 2017 at 4:48 pm #116391Hello!
Oh I see, hm, we are using Genesis Framework and Genesis Sample theme.
We are also using the same theme on a few other sites that does not have the same problem.
I’ll give you links in a private reply, hold on.Did not look through it that much yet but I think I could handle it.
Regards,
Ross Moderator(Private) June 22, 2017 at 5:03 pm #116398Hey again…
Actually I was suprised that Genesis didn’t do this correct way (and wondered why I didn’t have more tickets of a similar nature).
This leads me to believe… that something else is modifying your pagination… and incorrectly I might add…
I think what you will need to do is disabled all your other plugins 1 by 1, and then remove any custom code you might have added (try another copy of genesis to make sure its clean).
I’m pretty sure the issue will be within another plugin somehow.
Let me know when you’ve tried it.
Best
-
AuthorPosts