AJAX Returning Way Too Many Posts
OK, so I’m not sure if this is best practice, but after testing the code by using a onclick rather than scroll, the pages do load appropriately. I have got round the issue of loads of results by adding a condition to only return true after the AJAX has completed; // AJAX Posts var pageNumber=”0″; … Read more