• ResolvedPlugin Author Oliver Campion

    (@domainsupport)


    We’ve been looking into getting JetPack Infinite Scroll working with Twenty Nineteen but so far have only managed to get it to repeat the same post over and over again … !

    function oftn_add_theme_support()
    {
    add_theme_support( 'infinite-scroll', array(
        'container' => 'main',
        'posts_per_page' => 10,
        'render'         => 'oftn_infinite_scroll_render'
    ) );
    }
    add_action( 'after_setup_theme', 'oftn_add_theme_support', 11);
    
    function oftn_infinite_scroll_render() {
        get_template_part( 'template-parts/content/content' );
    }

    We’ll revisit this in the new year but if anyone has any thoughts please let us know.

    Thanks,

    Oliver

Viewing 1 replies (of 1 total)
  • Plugin Author Oliver Campion

    (@domainsupport)

    Further to this, we’ve just pushed an update that adds an option to enable Jetpack’s infinite scroll.

    Oliver

Viewing 1 replies (of 1 total)

The topic ‘JetPack Infinite Scroll’ is closed to new replies.