Answers.Body: <p>How to query for those entries depends on the sort order of your channel, as you probably want the sort order of your Next Entries to be the same as it is for the channel's index page.</p>
  
  <p>For news or blog like entries which are ordered by <code>postDate desc</code> (default) you can make use of the <a href="http://buildwithcraft.com/docs/templating/craft.entries#before" rel="nofollow"><code>before</code></a> parameter.</p>
  
  <pre><code>{% set nextEntries = craft.entries.section('news').before(entry.postDate).limit(12) %}
  {% for entry in nextEntries %}
      {{ entry.title }}
  {% else %}
      No entries found!
  {% endfor %}
  </code></pre>
  
  <p>Another possibility to query for past entries is to use <code>postDate</code> as a parameter (→ allowed <a href="http://buildwithcraft.com/docs/templating/elementcriteriamodel#parameter-value-syntax" rel="nofollow">syntax for parameter values</a>)</p>
  
  <pre><code>{% set nextEntries = craft.entries.section('news').postDate('&lt; ' ~ entry.postDate).limit(12) %}
  </code></pre>
  
  <p>For other types of channels, that might be ordered by title or ID, here some more examples:</p>
  
  <pre><code>{% set nextEntries = craft.entries.section('books').title('&lt; ' ~ entry.title).order('title desc').limit(40) %}
  {% set nextEntries = craft.entries.section('rum').age('&gt; ' ~ entry.age).order('age').limit(5) %}
  {% set nextEntries = shuffle(craft.entries.section('dreams').id('not ' ~ entry.id).limit(7)) %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-04T06:51:11.823Z
Answers.LastActivityDate: 2015-03-04T06:59:44.670Z
Answers.LastEditDate: 2015-03-04T06:59:44.670Z
Answers.UserDisplayName: carlcs
Answers.Body: <p>.getPrev and .getNext sounds like what you're asking for:<br>
  <a href="http://buildwithcraft.com/docs/templating/entrymodel#isSiblingOf">http://buildwithcraft.com/docs/templating/entrymodel#isSiblingOf</a>   </p>
  
  <pre><code>{% set params = {
      section: 'cocktails',
      order:   'title'
  } %}
  
  {% set prevCocktail = entry.getPrev(params) %}
  {% set nextCocktail = entry.getNext(params) %}
  
  {% if prevCocktail %}
      &lt;p&gt;Previous: &lt;a href="{{ prevCocktail.url }}"&gt;{{ prevCocktail.title }}&lt;/a&gt;&lt;/p&gt;
  {% endif %}
  
  {% if nextCocktail %}
      &lt;p&gt;Next: &lt;a href="{{ nextCocktail.url }}"&gt;{{ nextCocktail.title }}&lt;/a&gt;&lt;/p&gt;
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-04T01:33:01.953Z
Answers.LastActivityDate: 2015-03-04T01:33:01.953Z
Answers.UserDisplayName: Anna_MediaGirl
Body: <p>Is there a technique for displaying a list of “Next Entries”, which come from the current Channel. The solution I am using at the moment isn’t cutting it…</p>
  
  <p>I’m using an Entry Offset of 1 to display Entries in a sidebar. This works OK if the Entry Detail page the user is looking at happens to be for the most recent Entry, but this quickly breaks down if displaying any other Entry, as the sidebar always displays a list starting at the second most recent Entry.</p>
  
  <p>How would I display the next entries in the sequence, regardless of which Entry detail page the user is on?</p>
  
  <p>Thank you</p>
  
Tags: <entries><channels>
Title: How to display a list of next entries
ThreadText: # How to display a list of next entries
  
  (Asked by: username_0 on 2015-03-04)
  
  Is there a technique for displaying a list of “Next Entries”, which come from the current Channel. The solution I am using at the moment isn’t cutting it…
  
  I’m using an Entry Offset of 1 to display Entries in a sidebar. This works OK if the Entry Detail page the user is looking at happens to be for the most recent Entry, but this quickly breaks down if displaying any other Entry, as the sidebar always displays a list starting at the second most recent Entry.
  
  How would I display the next entries in the sequence, regardless of which Entry detail page the user is on?
  
  Thank you
  
  **Tags:** entries, channels
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-03-04. Score: 0 | Accepted answer
  
  How to query for those entries depends on the sort order of your channel, as you probably want the sort order of your Next Entries to be the same as it is for the channel's index page.
  
  For news or blog like entries which are ordered by `postDate desc` (default) you can make use of the [`before`](http://buildwithcraft.com/docs/templating/craft.entries#before) parameter.
  
  ```
  {% set nextEntries = craft.entries.section('news').before(entry.postDate).limit(12) %}
  {% for entry in nextEntries %}
      {{ entry.title }}
  {% else %}
      No entries found!
  {% endfor %}
  
  ```
  
  Another possibility to query for past entries is to use `postDate` as a parameter (→ allowed [syntax for parameter values](http://buildwithcraft.com/docs/templating/elementcriteriamodel#parameter-value-syntax))
  
  ```
  {% set nextEntries = craft.entries.section('news').postDate('< ' ~ entry.postDate).limit(12) %}
  
  ```
  
  For other types of channels, that might be ordered by title or ID, here some more examples:
  
  ```
  {% set nextEntries = craft.entries.section('books').title('< ' ~ entry.title).order('title desc').limit(40) %}
  {% set nextEntries = craft.entries.section('rum').age('> ' ~ entry.age).order('age').limit(5) %}
  {% set nextEntries = shuffle(craft.entries.section('dreams').id('not ' ~ entry.id).limit(7)) %}
  
  ```
  
  
  ---
  
  ### Answer by username_2 on 2015-03-04. Score: 5
  
  .getPrev and .getNext sounds like what you're asking for:  
  <http://buildwithcraft.com/docs/templating/entrymodel#isSiblingOf>
  
  ```
  {% set params = {
      section: 'cocktails',
      order:   'title'
  } %}
  
  {% set prevCocktail = entry.getPrev(params) %}
  {% set nextCocktail = entry.getNext(params) %}
  
  {% if prevCocktail %}
      <p>Previous: <a href="{{ prevCocktail.url }}">{{ prevCocktail.title }}</a></p>
  {% endif %}
  
  {% if nextCocktail %}
      <p>Next: <a href="{{ nextCocktail.url }}">{{ nextCocktail.title }}</a></p>
  {% endif %}
  
  ```
  
  
  ---
  
  