# Pagination not working on custom post format query on page

**URL:** https://discourse.roots.io/t/pagination-not-working-on-custom-post-format-query-on-page/4901
**Category:** sage
**Created:** 2015-10-05T16:44:40Z
**Posts:** 14
**Showing post:** 14 of 14

## Post 14 by @smutek — 2019-08-05T15:14:24Z

Hi there! I think that’d probably be best served as a function in App, where you’d make its output available to one of your blade templates.

Have a read through this thread if you’d like, here’s where I had my OMG WOW moment with templating.

> [@Best Practice / Resources for Blade](https://discourse.roots.io/t/best-practice-resources-for-blade/8341/11):
>
> Wow, this is super nice man, fantastic job! Here’s a simple image slider with Slick. This is using [ACF’s gallery field](https://www.advancedcustomfields.com/add-ons/gallery-field/), but anything will do. Controller - function slider( $data ) { $images = get\_field('images'); if ( $images ) { $data['images'] = $images; } return $data; } add\_filter( 'sage/template/home/data', 'App\\slider' ); View - \<ul class="list-unstyled slider"\> @forelse($images as $image) \<li\>\<img src="{{$image['url']}}" alt="{{$image['alt']}}"\>\</li\>…

Hope that helps a bit!

---

_[View the full topic](https://discourse.roots.io/t/pagination-not-working-on-custom-post-format-query-on-page/4901)._
