Hi everyone!
I’m using jetpack infinite scroll with Kahuna theme.
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…
Website: en.dcodumilieu.fr