Pagination Issue version 21.5

Tagged:
  • ukdesignservices
    Participant
    3 years, 5 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

    wpsolr
    Keymaster
    3 years, 5 months ago #12847

    Can you show a screenshot of the problem?

    ukdesignservices
    Participant
    3 years, 5 months ago #12849

    Hi, 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

    wpsolr
    Keymaster
    3 years, 5 months ago #12850

    Thanks. Does the url change when navigating?

    ukdesignservices
    Participant
    3 years, 5 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.

    wpsolr
    Keymaster
    3 years, 5 months ago #12852

    An error in the js/chrome console?

    ukdesignservices
    Participant
    3 years, 5 months ago #12853

    Hi, 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.

    wpsolr
    Keymaster
    3 years, 5 months ago #12854

    How did you build the search page?

    ukdesignservices
    Participant
    3 years, 5 months ago #12855

    It’s just a very basic search.php template:

    get_header()
    dynamic_sidebar()
    while(have_postS()) loop
    paginate_links()
    get_footer()

    ukdesignservices
    Participant
    3 years, 5 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’

    wpsolr
    Keymaster
    3 years, 5 months ago #12857

    And the WPSOLR facets widget?

    ukdesignservices
    Participant
    3 years, 5 months ago #12858
    wpsolr
    Keymaster
    3 years, 5 months ago #12859

    Nothing custom?

    ukdesignservices
    Participant
    3 years, 5 months ago #12860

    Ah ha. Okay I’ve found the issue, it was in pre_get_posts. Sorry for wasting your time.

    wpsolr
    Keymaster
    3 years, 5 months ago #12861

    What was the issue exactly, so others can prevent the same error?

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.