Forums › Forums › Search & Filter Pro › Paginate links in taxonomy not working
- This topic has 15 replies, 3 voices, and was last updated 8 years, 12 months ago by
Trevor.
-
Ross Moderator(Private) October 5, 2016 at 6:39 pm #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(Private) October 5, 2016 at 6:46 pm #62270Could 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(Private) October 5, 2016 at 7:14 pm #62294Ahhh 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
andpaginate_links
which lead to these functions:
pagination_fix_pagenum
andpagination_fix_paginate
Thanks
-
AuthorPosts