WordPress plugin to load previous posts using AJAX