title: Pagination in timber
body: <p>I am using Timber, and currently trying to get pagination working as per the <a href="https://timber.github.io/docs/guides/pagination/#nav" rel="nofollow noreferrer">Timber docs</a>, though so far, without success. Below is my custom archive php file:</p>
  
  <pre><code>global $paged;
  if (!isset($paged) || !$paged){
      $paged = 1;
  }
  $context = Timber::get_context();
  $args = array(
      'post_type' =&gt; 'product',
      'posts_per_page' =&gt; 2,
      'paged' =&gt; $paged,
  );
  $context['subCatItems'] = new Timber\PostQuery($args);
  
  Timber::render('archive-product.twig', $context);
  </code></pre>
  
  <p>And my corresponding Twig file:</p>
  
  <pre><code>&lt;div class="l-container vert-push--small vert-push--adult--medium"&gt;
      {% for post in posts %}
          &lt;div class="c-std"&gt;{{ post.title }}&lt;/div&gt;
      {% endfor %}
  &lt;/div&gt;
  
  &lt;div class="tool-pagination c-std"&gt;
      {% if posts.pagination.prev %}
          &lt;a href="{{posts.pagination.prev.link}}" class="prev {{posts.pagination.prev.link|length ? '' : 'invisible'}}"&gt;Prev&lt;/a&gt;
      {% endif %}
      &lt;ul class="pages"&gt;
          {% for page in posts.pagination.pages %}
              &lt;li&gt;
                  {% if page.link %}
                      &lt;a href="{{page.link}}" class="{{page.class}}"&gt;{{page.title}}&lt;/a&gt;
                  {% else %}
                      &lt;span class="{{page.class}}"&gt;{{page.title}}&lt;/span&gt;
                  {% endif %}
              &lt;/li&gt;
          {% endfor %}
      &lt;/ul&gt;
      {% if posts.pagination.next %}
          &lt;a href="{{posts.pagination.next.link}}" class="next {{posts.pagination.next.link|length ? '' : 'invisible'}}"&gt;Next&lt;/a&gt;
      {% endif %}
  &lt;/div&gt;
  </code></pre>
  
  <p>The main issue at the moment is that <code>posts_per_page</code> seems to do nothing, and I am just getting all the posts rendering on the page (about 20 currently), when there should be only 2 with the pagination (which isn't currently showing. Any ideas?</p>