Answers.Body: <p>In your criteria, you need to set the <code>limit</code> to <code>null</code> as by default Craft only returns up to 100 entries.</p>
  
  <p>See: <a href="https://craftcms.stackexchange.com/questions/14453/default-craft-entry-limit">Default Craft entry limit</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-07T23:22:13.500Z
Answers.Text: Oh wow, I did not realize that came into play here.  I went ahead and added {% set criteria = craft.entries.section('posts').limit(null) %}.  It worked.  Thanks.
Answers.UserDisplayName: Hellyar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-07T23:09:10.407Z
Answers.LastActivityDate: 2017-02-07T23:09:10.407Z
Answers.UserDisplayName: Jeremy Daalder
Body: <p>Prev and Next stop working after 100 entries..  There are no template errors.  I can access the pages for the individual entries - but Next and Previous are blank.</p>
  
  <p>Here is my set up...</p>
  
  <p><code>{% set criteria = {section: 'posts'} %}
  {% set prev = entry.getPrev(criteria) %}
  {% set next = entry.getNext(criteria) %}</code></p>
  
  <p><code>{% if prev %}</code>
  <strong><code>my html ...{{ prev.url }} ...my html</code></strong>
  <code>{% endif %}</code></p>
  
  <p>The same holds true for next.</p>
  
  <p>Once there was a template error referencing a null value on prev.url - and referencing an entry ID that no longer appears to exists.  However, I discovered that I had had <code>prev</code> under <code>if next</code>.  That is the only time I was able to produce a template error.  </p>
  
Tags: <templating><error-message>
Title: getPrev and getNext stop working after 100+ entries
ThreadText: # getPrev and getNext stop working after 100+ entries
  
  (Asked by: username_0 on 2017-02-07)
  
  Prev and Next stop working after 100 entries.. There are no template errors. I can access the pages for the individual entries - but Next and Previous are blank.
  
  Here is my set up...
  
  `{% set criteria = {section: 'posts'} %}
  {% set prev = entry.getPrev(criteria) %}
  {% set next = entry.getNext(criteria) %}`
  
  `{% if prev %}`
  **`my html ...{{ prev.url }} ...my html`**
  `{% endif %}`
  
  The same holds true for next.
  
  Once there was a template error referencing a null value on prev.url - and referencing an entry ID that no longer appears to exists. However, I discovered that I had had `prev` under `if next`. That is the only time I was able to produce a template error.
  
  **Tags:** templating, error-message
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-02-07. Score: 4 | Accepted answer
  
  In your criteria, you need to set the `limit` to `null` as by default Craft only returns up to 100 entries.
  
  See: [Default Craft entry limit](https://craftcms.stackexchange.com/questions/14453/default-craft-entry-limit)
  
  > **Comments:**
  > **username_0**: Oh wow, I did not realize that came into play here.  I went ahead and added {% set criteria = craft.entries.section('posts').limit(null) %}.  It worked.  Thanks.  
  
  ---
  
  