I'm developing my own theme and added this in a function which is called with the hook
after_setup_theme to support infinite scroll:
add_theme_support( 'infinite-scroll', array( 'container' => 'content', 'footer' => false, 'wrapper' => false ) );
I got this from http://jetpack.me/support/infinite-scroll/.
content is the id of the container the new posts should go in.
footer is set to false since I don't want another footer to be added.
wrapper is set to false because I don't need a div wrapper.
TypeError: infiniteScroll.scroller is undefined at infinity.js:485
I also see there is an ajax request when I scroll to the bottom, but that page returns:
What am I doing wrong? How can I get this working?