# Iterating over pages in themes

**URL:** <https://forum.ghost.org/t/iterating-over-pages-in-themes/17349>\
**Category:** Themes\
**Created:** [September 28, 2020, 6:13pm UTC](https://forum.ghost.org/t/iterating-over-pages-in-themes/17349 "2020-09-28T18:13:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [September 28, 2020, 7:48pm UTC](https://forum.ghost.org/t/iterating-over-pages-in-themes/17349/2 "2020-09-28T19:48:31Z")

</div>

> [@sinsedrix](#):
>
> As pages are posts

Posts and Pages are stored in the same database table, but that’s the only similarity they have; the way Posts and Pages are handled by Ghost are independent of each other.

I’m not sure what you mean by pages are not iterable using the `foreach` helper - this works:

```hbs
{{#get "pages" limit=5 as |pages|}}
    {{#foreach pages as |page|}}
        {{page.title}}
    {{/foreach}}
{{/get}}

```

Can you share what you’re trying to do?

---

_[View the full topic](https://forum.ghost.org/t/iterating-over-pages-in-themes/17349)._
