Forums › Forums › Search & Filter Pro › Pagination not working
Tagged: permalinks pagination
- This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by
Ross.
-
Ross Moderator(Private) May 4, 2015 at 2:07 pm #16606
Hi Jarad
I had a quick look. How are you generating your pagination links?
Can you try to use the default WordPress links (for older/newer) as a test?
https://codex.wordpress.org/Pagination
Basically, S&F doesn’t do anything to you pagination in this scenario – the pagination is being created in the absolute standard way your theme would do for any other page.
Now if your theme uses its own custom pagination, there may be problems in the way this is generated.
To allow pagination, and keep things in the URL like
post_types
all S&F (and other plugins) have to do is register the variables so they are “remembered” – https://developer.wordpress.org/reference/functions/add_query_arg/It looks like somethign strange is happening in your setup, even a possible double encoding of the URL:
s=how+it+works&post_types=rcrtv#038;post_types=rcrtv/page/2
Whatever is “making” your pagination links isn’t doing it properly I don’t believe – and not accomodating for other WP usage…
Please try to use the above functions I reference (I know you don’t want those, but as a test, because the WordPress pagination functions handle these things properly)….
If this works, but of course you don’t want this kind of pagination – I suggest integrating the wp_pagenavi plugin – which allows for numbering like you have:
https://wordpress.org/plugins/wp-pagenavi/
Thanks!
Anonymous(Private) May 6, 2015 at 8:41 pm #16856Ross
We were able to pin point the area that was effecting the pagination issue which wasn’t anything you suggested, however it was due to a snippet of php in the home page loop in the theme (the site uses the same loop for searches).
We were able to resolve the issue with the php which now allows the pagination to work.But thank you for the insight into pagination, this information may help someone in the future with a similar issue.
Cheers.
-
AuthorPosts