Answers.Body: <p>You can insert an array of different sections instead of a single one to pull entries from multiple sections</p>
  
  <pre><code>{% set entries = craft.entries.section(['sectionHandle', 'sectionHandleTwo']).limit(10) %}
  </code></pre>
  
  <p>You can also write that</p>
  
  <pre><code>{% set entries = craft.entries({
    section: ['sectionHandle', 'sectionHandleTwo'],
    limit: 10
  }) %}
  </code></pre>
  
  <p>If you remove the <code>.section()</code> / <code>section:...,</code> entirely you'll fetch all entries from all sections. 
  Here's a link to the <a href="https://craftcms.com/docs/templating/elementcriteriamodel#parameter-value-syntax" rel="noreferrer">docs</a> </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-11-14T17:47:17.027Z
Answers.LastActivityDate: 2018-08-20T06:41:56.387Z
Answers.LastEditDate: 2018-08-20T06:41:56.387Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I have five separate sections with x number of entries each. I would like to render all the entries from all the sections on a single entry template page. Is there a way to do this ? I know we can set entries like this  <code>{% set entries = craft.entries.section('sectionHandle').limit(10) %}</code> , but I'm not sure how to get entries from all the sections. </p>
  
  <p>Any help or suggestion is highly appreciated. </p>
  
  <p>Thanks! </p>
  
Tags: <entries><structure><craft.entries>
Title: How to fetch entries from multiple sections
ThreadText: # How to fetch entries from multiple sections
  
  (Asked by: username_0 on 2017-11-14)
  
  I have five separate sections with x number of entries each. I would like to render all the entries from all the sections on a single entry template page. Is there a way to do this ? I know we can set entries like this `{% set entries = craft.entries.section('sectionHandle').limit(10) %}` , but I'm not sure how to get entries from all the sections.
  
  Any help or suggestion is highly appreciated.
  
  Thanks!
  
  **Tags:** entries, structure, craft.entries
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-14. Score: 14 | Accepted answer
  
  You can insert an array of different sections instead of a single one to pull entries from multiple sections
  
  ```
  {% set entries = craft.entries.section(['sectionHandle', 'sectionHandleTwo']).limit(10) %}
  
  ```
  
  You can also write that
  
  ```
  {% set entries = craft.entries({
    section: ['sectionHandle', 'sectionHandleTwo'],
    limit: 10
  }) %}
  
  ```
  
  If you remove the `.section()` / `section:...,` entirely you'll fetch all entries from all sections.
  Here's a link to the [docs](https://craftcms.com/docs/templating/elementcriteriamodel#parameter-value-syntax)
  
  
  ---
  
  