Improved paginated post load, getting last id from front-end.