Load more posts with ajax when using timber/twig templating?

(jesper landberg) #1


I recently started using timber, and love it. However, does someone know how a “load more posts” with ajax could be done? My current solution uses the WP REST API, but would be nice if i could skip that and use my regular post entry template file just like I would if I did it the “standard” wordpress php way.

(Leland Fiegel) #2

Have you tried Jetpack Infinite Scroll? I am not familiar with timber/twig but you should be able to use it in the render function.