• Resolved Yao

    (@yaolendil)


    Hi everyone!

    I’m using jetpack infinite scroll with Kahuna theme (from cryoutcreation).

    Everthing is working as intended exept that i’m getting a */page/NaN everytime I start scrolling.

    Take this page for example : https://en.dcodumilieu.fr/decoration-items/
    As soon as you start scrolling down, address is changed into https://en.dcodumilieu.fr/decoration-items/page/NaN

    Here’s my function file :

    // INFSCROLL
    
    function kahuna_infinite_scroll_init() {
    add_theme_support( 'infinite-scroll', array(
    'type' => 'click',
    'footer_widgets' => true,
    'wrapper' => 'content-masonry',
    'posts_per_page' => 20,
    'container' => 'content-masonry',
    'render' => 'kahuna_infinite_scroll_render',
    'footer' => 'page',
    ) );
    }
    add_action( 'init', 'kahuna_infinite_scroll_init' );
    
    function kahuna_infinite_scroll_render() {
    get_template_part( 'archive2' );
    }

    If anyone have an idea…

Viewing 1 replies (of 1 total)
  • Plugin Contributor James Huff

    (@macmanx)

    We’re not able to provide direct support for customizations.

    Have you checked with the theme’s support on this?

Viewing 1 replies (of 1 total)

The topic ‘Infinite Scroll Issue “*Page/NaN*’ is closed to new replies.