Implement infinite scrolling in-theme instead of relying on plugin