Filter posts by Custom Post Template


#1

I have created new Custom Post Templates like on https://github.com/TryGhost/Ghost/issues/9060 and now I would like to know if I can use a filter to only display posts that use this template in a list


#2

Hey!

You could use the get helper to query posts.

{{#get "posts" filter="custom_template:[name]"}}
  {{#foreach posts}}
    {{url}}
  {{/foreach}}
{{/get}}