Forums Forums Search & Filter Pro Pagination Wootemplate

Viewing 10 posts - 11 through 20 (of 44 total)
  • Ross Moderator
    #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
    #116346
    This reply has been marked as private.
    Anonymous
    #116348

    Great! Holiday in Sweden tomorrow, so I wont be able to answer, but I’ll look for an answer perhaps later today.

    Regards,

    Ross Moderator
    #116386

    Ah 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 function

    This 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_links

    What 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
    #116391

    Hello!
    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,

    Anonymous
    #116393
    This reply has been marked as private.
    Ross Moderator
    #116398

    Hey 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

    Anonymous
    #116406

    Hey!
    Ah ofc, will try that as soon as possible, not today though however.
    But thanks for now, I will get back to you as soon as I know anything more regarding this! 🙂

    Regards,

    Ross Moderator
    #116419
    This reply has been marked as private.
    Anonymous
    #116764

    Hey!
    Thanks, holiday was good, even though it rained a bit as always. 🙂

    This is really quite strange.
    I updated Woocommerce, WordPress and Genesis and now the pagination works when I have selected a category, eg. “Avdelningar”. Then everything is fine.
    However, if no filters are active, only the first pagination link works and after that link has loaded all other links are broken again.
    Everything seems ok if I change Display method to “As an archive” though.

    I created a dev-site for disabling plugins but it did not make any difference.
    I’ll post the link to that site in the next post.

    Regards,

Viewing 10 posts - 11 through 20 (of 44 total)