Add support for pagination in posts