# Looping across pages from two different sections

**URL:** <https://zola.discourse.group/t/looping-across-pages-from-two-different-sections/106>\
**Category:** Support\
**Created:** [May 14, 2019, 5:09am UTC](https://zola.discourse.group/t/looping-across-pages-from-two-different-sections/106 "2019-05-14T05:09:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urcades](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/urcades/32/100_2.png) [@urcades](https://zola.discourse.group/u/urcades)\
**Post date:** [May 14, 2019, 5:09am UTC](https://zola.discourse.group/t/looping-across-pages-from-two-different-sections/106/1 "2019-05-14T05:09:35Z")

</div>

Hello everyone — I’m using Zola to build a personal site, and I have two sections set up as so:

```
<section>
  <p>Case Studies:</p>
  <ol>
      {% for post in section.pages %}
        <li><a href="{{ post.permalink }}">{{ post.title }}</a> <i>{{ post.year }}</i></li>
      {% endfor %}
  </ol>
</section>

<section>
  <p>Writing:</p>
  <ol>
  {% for post in section.pages %}
    <li><a href="{{ post.permalink }}">{{ post.title }}</a> <i>{{ post.year }}</i></li>
  {% endfor %}
  </ol>
</section>

```

I suspect that the key is in changing the bit in each code where `{% for post in section.pages %}` is specified, but I can’t seem to find anywhere in the documentation for Tera or Zola that explicitly calls out how to do this… any help would be appreciated!

Apologies in advance if I’m missing something clearly stated in the documentation — I seriously can’t seem to find how to target specific sections in the templating language 😥

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [May 15, 2019, 5:18am UTC](https://zola.discourse.group/t/looping-across-pages-from-two-different-sections/106/2 "2019-05-15T05:18:51Z")

</div>

You probably want to get the section using [https://www.getzola.org/documentation/templates/overview/#get-section](https://www.getzola.org/documentation/templates/overview/#get-section)
