# Get All Posts Of Certain Archetype

**URL:** <https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265>\
**Category:** support\
**Created:** [June 4, 2018, 2:22am UTC](https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265 "2018-06-04T02:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah-Huppert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/noah-huppert/32/5996_2.png) [@Noah-Huppert](https://discourse.gohugo.io/u/Noah-Huppert)\
**Post date:** [June 4, 2018, 2:22am UTC](https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265/1 "2018-06-04T02:22:41Z")

</div>

I have some posts in `content/projects`. I would like to be able to display a list of only these project posts.

Is there a variable I can access these posts in? Perhaps something like `.Data.Projects`?

---

<div class="post-metadata">

**Author:** ![budparr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/budparr/32/749_2.png) [@budparr](https://discourse.gohugo.io/u/budparr)\
**Post date:** [June 4, 2018, 2:33am UTC](https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265/2 "2018-06-04T02:33:47Z")

</div>

In a list template (`layouts/projects/list.html` or `layouts/default/list.html`) you can use something like

```auto
{{ range .Pages }}
    // stuff here
{{ end }}

```

which is handy because you can use this in a default template for any section.

If you’re outside of those you’ll want something more like

```auto
{{ range where .Site.RegularPages "Section" .Section }}
    //stuff  
{{ end }}

```

If you always want a specific section, replace `.Section` with `"the-actual-section-name"`

There are other approaches. Hope that helps. Dig into the docs some more, it’s all there.

---

<div class="post-metadata">

**Author:** ![Noah-Huppert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/noah-huppert/32/5996_2.png) [@Noah-Huppert](https://discourse.gohugo.io/u/Noah-Huppert)\
**Post date:** [June 4, 2018, 2:48am UTC](https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265/3 "2018-06-04T02:48:19Z")

</div>

Hey there,

Thanks for the response!

That’s exactly what I was looking for.

I was looking through the docs for a solid two hours before I resorted to posting a question here 🙂

Would you mind linking to the specific documentation page?

---

<div class="post-metadata">

**Author:** ![Yudy\_Ananda](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/yudy_ananda/32/5664_2.png) [@Yudy\_Ananda](https://discourse.gohugo.io/u/Yudy_Ananda)\
**Post date:** [June 4, 2018, 9:13am UTC](https://discourse.gohugo.io/t/get-all-posts-of-certain-archetype/12265/4 "2018-06-04T09:13:51Z")

</div>

You can find the doc about order, group content. filter and limiting list in the link below

> **[Lists of Content in Hugo](https://gohugo.io/templates/lists)**
>
> Lists have a specific meaning and usage in Hugo when it comes to rendering your site homepage, section page, taxonomy list, or taxonomy terms list.
