Forums Forums Search & Filter Pro Paginate links in taxonomy not working

Viewing 5 posts - 11 through 15 (of 15 total)
  • Ross Moderator
    #62266

    Hey there

    I’m afraid there is not at the moment – its not an option within S&F and to make it work like that would be quite a lot of hacking –

    The best place I could direct you to are these filters – https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/#Modify_URLs – but I don’t know if they will really help in this scenario.

    Taxonomy archives are something I’m planning to add in the next couple of updates so probably best to sit tight.

    Best

    Anonymous
    #62270

    Could you please just point me to where the code for pagination in S&F is. I would just like to somehow disable paginate links on taxonomy archive pages and create one on my own. S&F behaviour for paginate links is quite a deal breaker for me at the moment because I have multiple pages for taxonomy archives and when user clicks on page 2 it redirects him to custom post type archive which is bad UX. Thanks.

    Ross Moderator
    #62294

    Ahhh ok yes, I see what has happened.

    You have S&F display method set to “post type archive”, and you have have the rewrite base of your CPT.

    So in your taxonomy archive, is_post_type_archive is returning true, which means S&F is jumping in and modifying the pagination on those archives when it shouldn’t.

    So the place where S&F modifies pagination is here:

    search-filter-pro/src/public/includes/class-search-filter-query.php

    There are two WP filters which S&F uses to modify your existing pagination –

    get_pagenum_link and paginate_links

    which lead to these functions:

    pagination_fix_pagenum and pagination_fix_paginate

    Thanks

    Anonymous
    #62296

    Grazie 🙂

    Trevor
    #62343

    Let me know if I can close this thread?

Viewing 5 posts - 11 through 15 (of 15 total)