# Sage 10 Custom Post Types on archive-{post-type}.blade.php

**URL:** https://discourse.roots.io/t/sage-10-custom-post-types-on-archive-post-type-blade-php/18746
**Category:** sage
**Created:** 2020-07-23T17:07:00Z
**Posts:** 5

## Post 1 by @dgray0229 — 2020-07-23T17:07:00Z

I’m stuggling to try and display a list of posts from a custom post type in sage 10. I understand how to do it with Sage 9 controllers, but I can’t seem to get it working in Sage 10 Composers. I can display a single-{post-type}.blade.php file without any setup, but I have nothing for a list of custom post types. Also, I tried installing the original sage 9 controllers plugin but it didn’t work. Does anyone have advice on how to get this working?

---

## Post 2 by @alwaysblank — 2020-07-23T17:32:56Z

The routing system for templates has always followed the WordPress template hierarchy: [https://wphierarchy.com/](https://wphierarchy.com/) All that changes is you use a `.blade.php` extension instead of `.php`. If you want an archive of custom post types, you’d use `archive-[posttype].blade.php`.

---

## Post 3 by @alwaysblank — 2020-07-23T17:33:36Z

> [@dgray0229](#):
>
> I tried installing the original sage 9 controllers plugin

Also I don’t believe the Controller package is compatible with Sage 10.

---

## Post 4 by @dgray0229 — 2020-08-07T08:35:40Z

> [@alwaysblank](#):
>
> If you want an archive of custom post types, you’d use `archive-[posttype].blade.php` .

Well, that’s unfortunate because now I have no idea why my list of custom post types isn’t displaying. I can’t get the template to load at all. Is there something I’m missing in the admin panel?

---

## Post 5 by @alwaysblank — 2020-08-07T15:29:04Z

Can you show us your code?

---

## Post 6 by @system — 2020-09-03T17:07:05Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
