Pagination Issue version 21.5
3 years, 11 months ago #12846
Hi, I’m having trouble getting pagination to work. I’ve tried infinite scroll (on and off), WP navigation using paginate_links() and the_posts_pagination(), and the deprecated shortcode. I’ve also tried with the Yith plugin I saw you recommended to another user. Unfortunately all of them just load the first page of posts again.
I even tried stripping right back to TwentySeventeen default search template but I’m getting the same thing.
Do you have any idea what might be causing this?
Thanks in advance3 years, 11 months ago #12849
Hi, thanks for getting back to me. Certainly, here’s a quick video showing the pagination issue:
I’d be very grateful for any help or suggestions. It is only occurring on search, paginated taxonomies are working as usual.
Many thanks3 years, 11 months ago #12851
Hi. Yes, the URL changes, eg: localhost/page/2/?s=query. I’ve also tried manually appending paged= and wpsolr_page= parameters but neither make a difference.3 years, 11 months ago #12853
Hi, no there are no errors. I’ve uploaded the site to my dev server in case that helps:
If possible please can you remove this comment afterwards as the site is still under development?
Thank you very much.3 years, 10 months ago #12855
It’s just a very basic search.php template:
get_footer()3 years, 10 months ago #12856
Sorry, I tried to post the actual template code but it keeps redirecting me to the homepage when I click ‘Add Reply’3 years, 10 months ago #12858
That’s in the dynamic sidebar:
https://www.dropbox.com/s/2sl10yxmcv1rczf/search-sidebar.PNG?dl=03 years, 10 months ago #12860
Ah ha. Okay I’ve found the issue, it was in pre_get_posts. Sorry for wasting your time.
You must be logged in to reply to this topic.