# Custom pagination not work on next page, but default pagination worked on next page

**URL:** <https://forum.ghost.org/t/custom-pagination-not-work-on-next-page-but-default-pagination-worked-on-next-page/31602>\
**Category:** Developer help\
**Created:** [July 27, 2022, 11:03am UTC](https://forum.ghost.org/t/custom-pagination-not-work-on-next-page-but-default-pagination-worked-on-next-page/31602 "2022-07-27T11:03:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gregory/32/18687_2.png) [@Gregory](https://forum.ghost.org/u/Gregory)\
**Post date:** [July 27, 2022, 11:03am UTC](https://forum.ghost.org/t/custom-pagination-not-work-on-next-page-but-default-pagination-worked-on-next-page/31602/1 "2022-07-27T11:03:54Z")

</div>

Example FAQ page

```plaintext
{{#get "posts" filter="tag:faq" limit=@config.posts_per_page order="published_at desc" page=pagination.page}} {{#foreach posts visibility="all"}} {{/foreach}} {{pagination}} {{/get}}

```

1. Run on as default pagination template. First page - Ok, second page - Ok.
2. Create custom pagination.hbs like default
3. Run on custom **pagination.hbs**. First page - Ok, second page - not ok (blank #get)

In my understanding, the work of the pagination element based on the base component in the get helper should not work.

If a pagination component based on a base pagination.hbs file works in the get helper, but a custom **pagination.hbs** file does not work in the get helper. I believe that this is a bug, or a feature of the work not described in the documentation.

Maybe someone can tell me why this is happening.  
I couldn’t get a clear explanation from the development team…

> <https://github.com/TryGhost/Ghost/issues/15000>
>
> \### Issue Summary
> 
> Custom pagination not work on next page, but default paginati…on worked on next page.
> 
> \### Steps to Reproduce
> 
> Example FAQ page
> \`\`\`hbs
> {{#get "posts" filter="tag:faq" limit=@config.posts\_per\_page order="published\_at desc" page=pagination.page}}
> {{#foreach posts visibility="all"}}
> {{/foreach}}
> {{pagination}}
> {{/get}}
> \`\`\`
> 1. Run on as default pagination template. First page - Ok, second page - Ok.
> 2. Create custom pagination.hbs like default
> 3. Run on custom pagination.hbs. First page - Ok, second page - not ok (blank #get)
> 
> \### Ghost Version
> 
> 5.2.4
> 
> \### Node.js Version
> 
> 16.15.0
> 
> \### How did you install Ghost?
> 
> ghost local
> 
> \### Database type
> 
> SQLite3
> 
> \### Browser & OS version
> 
> \_No response\_
> 
> \### Relevant log / error output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I agree to be friendly and polite to people in this repository

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [July 27, 2022, 2:34pm UTC](https://forum.ghost.org/t/custom-pagination-not-work-on-next-page-but-default-pagination-worked-on-next-page/31602/2 "2022-07-27T14:34:00Z")

</div>

I think the explanation you received on GitHub covered all the bases: `pagination` and `get` aren’t compatible.

I just set up a test instance with the default pagination helper and get. The pagination helper changes within the context of a get request, but it doesn’t ultimately work as it can’t ever serve the next page of results (among other things).

In this situation, you want to reach for dynamic routing.

> **[Ghost Themes - Dynamic URLs & Routing](https://ghost.org/docs/themes/routing/)**
>
> Build dedicated URL structures using Ghost's dynamic routing system, for custom homepages, podcasts, categories and more.
