Pagination Issue version 21.5
- ukdesignservicesParticipant4 years, 8 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 advance
ukdesignservicesParticipant4 years, 8 months ago #12849Hi, thanks for getting back to me. Certainly, here’s a quick video showing the pagination issue:
https://www.dropbox.com/s/wf5t76aenkdbgk2/ice_video_20190705-094415.mp4?dl=0
I’d be very grateful for any help or suggestions. It is only occurring on search, paginated taxonomies are working as usual.
Many thanks
ukdesignservicesParticipant4 years, 8 months ago #12851Hi. 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.
ukdesignservicesParticipant4 years, 8 months ago #12853Hi, no there are no errors. I’ve uploaded the site to my dev server in case that helps:
https://dev.tickets.co.uk/?s=london
If possible please can you remove this comment afterwards as the site is still under development?
Thank you very much.
ukdesignservicesParticipant4 years, 8 months ago #12855It’s just a very basic search.php template:
get_header()
dynamic_sidebar()
while(have_postS()) loop
paginate_links()
get_footer()ukdesignservicesParticipant4 years, 8 months ago #12856Sorry, I tried to post the actual template code but it keeps redirecting me to the homepage when I click ‘Add Reply’
ukdesignservicesParticipant4 years, 8 months ago #12858That’s in the dynamic sidebar:
https://www.dropbox.com/s/2sl10yxmcv1rczf/search-sidebar.PNG?dl=0
ukdesignservicesParticipant4 years, 8 months ago #12860Ah 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.