Wordpress Jetpack Infinite Scroll returns {"type": "empty"}

I installed Wordpress Jetpack and set everything up in mine functions.php

, but for some reason it doesn't work. I followed this and other instructions on the Jetpack website but nothing seems to be loading ... Developer tools show the AJAX response is equal {"type":"empty"}

.

I want to load items from a custom taxonomy. On the page archive.php

I have some PHP that loads things into:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>

      

content.php

contains a template for each of the posts, and how the static page works fine. I installed Jetpack and put the following in mine functions.php

:

function bones_infinite_loop_init(){
    add_theme_support( 'infinite-scroll', array(
        'type'           => 'scroll',
        'container'      => 'masonry',
        'render'         => 'bones_infinite_scroll_render',
        'footer'         => false
    ) );
}
add_action( 'init', 'bones_infinite_loop_init' );

function bones_infinite_scroll_render() { 
$args = array( 'post_type'=> 'wigwam','post_parent' => 0,'posts_per_page' => 25);
    query_posts( $args );
if (have_posts()) : 
    while (have_posts()) : the_post();
        get_template_part( 'content', get_post_format() );
    endwhile; 
endif;
} 

      

But nothing comes. How can I debug this?

+5


source to share





All Articles