• Resolved lichtscheu

    (@zero85)


    Heys Guys,

    on home, archive and tags infinite scroll works perfectly, but i really need it on search results. Infinite Scrolling works on search but if on “page” 2, it lists all found posts, but includes the first X Posts frpm page 1 , which are displayed by the search.php on top, i tried everything i could found on the internet, but nothing really helps, only have a local install.

    it seems like its not checking the posts_per_page by the while loop from the search.php. tried to while loop directly in search.php for the first page, tried to while loop the first page with get_template_part(“content”) but everytime i scroll the first posts (that are already shown) are the first posts from infinite scroll =(

    Greetz

    https://www.ads-software.com/plugins/jetpack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m sorry to hear you’ve run into issues.

    Do you experience similar issues when switching to one of the default themes, like Twenty Fifteen?

    Thread Starter lichtscheu

    (@zero85)

    Hey,

    tested on the Twenty Fourteen, works perfectly with search, absolutley don’t know why my theme doesn’t work. Couldn’t find anything that could be the reason =(

    I have id=”infinite-scroll” on the section and on every other template-file it works, like archive or home. On search he shows me the 11 posts that come from search Paged 1 and when i scroll he loads infinite scroll but starts from post 1, so the first 11 posts are duplicated.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Do you happen to run a custom query on that page, or use a custom template with a custom loop to display the search results? Could you try to remove that custom template file, and see what happens when you rely on the default loop to display the results?

    Thread Starter lichtscheu

    (@zero85)

    After some researching i found out, if i cut the sidebar out of the template, it works probably. But its the same sidebar as on the other templates, where IS works fine -.-

    Thread Starter lichtscheu

    (@zero85)

    Is there some chance to get the action from IS so the sidebar is only displaying if IS is not happening? so that if IS starts the sidebar does not “start again”?

    Thread Starter lichtscheu

    (@zero85)

    oh god i fixed it, in my sidebar was an add_filter and then query_posts, no i added an remove_filter after the query and everything is fine!!

    Tank you!!

    Thread Starter lichtscheu

    (@zero85)

    oh, forgot to mark as resolved =)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Infinite Scroll on Search Results starts from first Post’ is closed to new replies.