Pagination Issue version 21.5

  • ukdesignservices
    Participant
    # 2 months, 3 weeks ago

    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
    # 2 months, 2 weeks ago

    Can you show a screenshot of the problem?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

    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
    # 2 months, 2 weeks ago

    Thanks. Does the url change when navigating?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

    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
    # 2 months, 2 weeks ago

    An error in the js/chrome console?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

    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
    # 2 months, 2 weeks ago

    How did you build the search page?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

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

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

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

    Sorry, I tried to post the actual template code but it keeps redirecting me to the homepage when I click ‘Add Reply’

    wpsolr
    Keymaster
    # 2 months, 2 weeks ago

    And the WPSOLR facets widget?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago
    wpsolr
    Keymaster
    # 2 months, 2 weeks ago

    Nothing custom?

    ukdesignservices
    Participant
    # 2 months, 2 weeks ago

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

    wpsolr
    Keymaster
    # 2 months, 2 weeks ago

    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.