Hi! I'm Tyler Longren, a freelance web developer. I have two beautiful daughters and a very patient wife!
I like PHP, JavaScript, WordPress, Git, HTML5 & CSS3, and other neat things. I really love the open source community, too.
You can find me on twitter or Google+, and Github.
This is my personal blog and that's it!

Scroll Forever, Or Until There’s No More Posts

Jetpack is a very popular plugin, so supporting Jetpack-specific features in your themes will end up just making your users happier. Kind of like an added bonus they didn’t realize they could use if they’re using your theme and Jetpack.

Infinite scroll is incredibly easy to add to “well-crafted” themes. The Twenty Twelve theme is a great example. Enabling infinite scroll is slightly more complicated with not-so-well-crafted themes, but it’s still pretty easy.

In mytheme_infinite_scroll_init, the ‘loop’ parameter value defines the file where your wordpress loop sits. It should be very basic and only contain markup and PHP you want to be included with every post. Have a look at the loop.php file from Rootdip for an example.

That’s It

That’s really all there is to it. With the above code you’ll have a working Jetpack Infinite Scroll in your WordPress theme. Whether you’ve got a well-crafted theme or not, you should be able to add infinite scroll via Jetpack fairly easily.

Well, now what?

Work with Me

I'm available for hire and always taking new clients, big and small. Got a project or an idea you'd like to discuss? Startup plan but no developer to make it happen? Just get in touch, I'd love to see if I can help you out!

Leave some Feedback

Got a question or some updated information releavant to this post? Please, leave a comment! The comments are a great way to get help, I read them all and reply to nearly every comment. Let's talk. :)

Related

Hi! I'm Tyler Longren, a freelance web developer. I have two beautiful daughters and a very patient wife!
I like PHP, JavaScript, WordPress, Git, HTML5 & CSS3, and other neat things. I really love the open source community, too.
You can find me on twitter or Google+, and Github.
This is my personal blog and that's it!

Published

Hey tyler! thanks for this. I’m trying to get this to work with the Starkers theme – do I need to have the loop in its own separate .php file for this to work? Or can I keep the loop in index.php and take out the render and add_action? thanks!

I have my own theme, but I think I can make this work, I already added theme support for thumbnails, I changed the container to ‘blogContent’ but it still doesn’t just work, do I need to modify index.php, it seems I should have to…