Meteor pagination


Hey everyone! i am struggling with adding in pagination for my forums. Could you help me out? I am using this package:

Here is the code I am using:
if (Meteor.isClient) {

Deps.autorun(function() {
var handle = Meteor.subscribeWithPagination('posts',10);


    'posts': function(){
        return Posts.find({});
    'click .btn': function(){


if (Meteor.isServer) {
Meteor.startup(function () {
Meteor.publish(“posts”, function(limit){
return Posts.find({}, {limit: limit});




Can you outline what the exact issue is you’re having?


Sorry about that. It was late! Basically, I was expecting on my forums page, to only see 10 posts. but it is returning all of them. The “Load More” button also does nothing (it seems like).


This is a pretty good overview of pagination in Meteor, I think: