• Resolved lunder89

    (@lunder89)


    Our website is skipping posts on the blog page.
    It is a self-hosted site, running the plugin Jetpack. We have the theme Confit and Infinite scroll is activated.

    When we scroll to the bottom it skips several posts (like page 2 is missing). I have tried disabling infinite scroll, but it still skips the posts.

    I have also tried changing the posts to a draft and republishing them, with no result.

    In the admin panel they are all available. And if I search, I can find all the missing posts.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lunder89

    (@lunder89)

    Did a lot of digging, and just got refreshed that my coding skills are terrible. Turns out adding ‘posts_per_page’ => 7, to the functions.php file solves the problem.

    Thread Starter lunder89

    (@lunder89)

    And now the problem has returned…
    Now however disabling Infinite scroll via jetpack solves the problem. Seems jetpack is bugging out.

    schmarty

    (@schmarty)

    Hey @lunder89,

    I was seeing similar behavior and found this thread about an issue with pagination in Jetpack 6.0 that seems to crop up with multiple posts on the same day at a page boundary:

    https://github.com/Automattic/jetpack/issues/9247#issue-312087061

    The workaround in that thread worked for me.

    It seems that this may be part of some larger or longstanding Jetpack infinite scroll issue:

    https://github.com/Automattic/jetpack/issues/1554

    Thread Starter lunder89

    (@lunder89)

    Great thanks for the reply. I was starting to think I had done something stupid with our website.

    I am a wordpress rookie still. Could you point to where I need to do the workaround? @schmarty

    schmarty

    (@schmarty)

    I was able to copy and paste the workaround code (the three lines, starting with add_filter( "infinite_scroll_posts_where"...) to my theme’s functions.php file.

    Thread Starter lunder89

    (@lunder89)

    You are a life safer @schmarty

    Now infinite scroll works again.
    We are having a festival right now and need to post a lot of information about whats going on, so this was the worst possible time for things to break down.

    Thank you so much for your generous help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress blog skipping posts’ is closed to new replies.