• djmwr

    (@djmwr)


    I’ve added the below Infinite Scroll code (found on this forum) to the Theme Functions .php in my Child Theme:

    // infinite scroll posts per loop
    function iona_infinite_scroll_settings( $args ) {
    	if ( is_array( $args ) )
    		$args['posts_per_page'] = 12;
    		$args['type'] = 'scroll';
    	return $args;
    }
    
    add_filter( 'infinite_scroll_settings', 'iona_infinite_scroll_settings' );

    However there are some posts that do not appear at all (ie: they’re missing) when I scroll down the page.

    All my posts have the correct Published date, but changing these dates does not seem to affect whether these posts show up or not. This only happens on a few posts, so I’m not sure why.

    Help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter djmwr

    (@djmwr)

    Ok, I’ve been playing around with this and it seems that, with the above code enabled the theme will load the first 12 posts, skip the next 12, then load the rest.

    This follows if I change the ‘posts per page’ number. Example: if I change it to 3, it will load the first 3, skip the next 3, then load the rest etc…

    Anyone know how to amend the code so that it stops doing this?

    I am also facing the same issue, skipping the posts while loading using Jetpack Inifinite Scroll. Did you able to resolve it?

    Please let us know. 🙂

    This is a Jetpack plugin issue has already been reported. Refer below link for issue detail & how to resolve the same.

    https://github.com/Automattic/jetpack/issues/9327#issuecomment-382683116

    For me, looks like the issue got resolve by updating the plugin to v6.1. But I have to perform more tests to make sure of that.

    Thanks,
    avirup

    Thread Starter djmwr

    (@djmwr)

    The update works for me as well (ie: no more missing posts).

    It’s a shame that the Theme itself doesn’t really have a ‘true’ infinite scroll, in that the Theme’s version of infinite scroll is a ‘+’ button at the bottom of each scroll – instead of just loading the next amount of posts automatically. I thought infinite scroll was something that took out user intervention (ie: not having to click a button)?

    In the Settings > Reading menu I have just set the ‘Blog pages show at most’ option to something crazy like 1,000 – so all of my posts load in one go and you can scroll down without having to click anything (as infinite scroll should do). This is probably pretty inefficient on the loading though.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posts not all appearing in infinite scroll’ is closed to new replies.